]> diplodocus.org Git - nmh/blob - config/Makefile.in
Just reworded the bit about '%s' being safe not to quote (it's only safe not to
[nmh] / config / Makefile.in
1 #
2 # Makefile for config subdirectory
3 #
4 # $Id$
5 #
6
7 # nmh version
8 VERSION = @VERSION@
9
10 SHELL = /bin/sh
11
12 top_srcdir = @top_srcdir@
13 srcdir = @srcdir@
14 VPATH = @srcdir@
15
16 prefix = @prefix@
17 exec_prefix = @exec_prefix@
18 bindir = @bindir@
19 libdir = @libdir@
20 etcdir = @sysconfdir@
21
22 default_editor = @editorpath@
23 default_pager = @pagerpath@
24
25 CC = @CC@
26 CFLAGS = @CFLAGS@
27 DEFS = @DEFS@
28 INCLUDES = -I.. -I$(top_srcdir)
29 CONFIGDEFS = -DNMHBINDIR='"$(bindir)"' -DNMHETCDIR='"$(etcdir)"' -DNMHLIBDIR='"$(libdir)"' \
30 -DDEFAULT_EDITOR='"$(default_editor)"' -DDEFAULT_PAGER='"$(default_pager)"'
31
32 COMPILE = $(CC) -c $(DEFS) $(INCLUDES) $(CFLAGS)
33 COMPILE2 = $(CC) -c $(DEFS) $(CONFIGDEFS) $(INCLUDES) $(CFLAGS)
34
35 .SUFFIXES:
36 .SUFFIXES: .c .o
37
38 .c.o:
39 $(COMPILE) $<
40
41 # source files
42 SRCS = config.c
43
44 # object files
45 OBJS = config.o version.o
46
47 # auxiliary files
48 AUX = Makefile.in version.sh
49
50 # all files in this directory included in the distribution
51 DIST = $(SRCS) $(AUX)
52
53 # ========= DEPENDENCIES FOR BUILDING ==========
54
55 all: $(OBJS)
56
57 version.c:
58 ${srcdir}/version.sh $(VERSION) > version.c
59
60 config.o: config.c
61 $(COMPILE2) $<
62
63 install:
64
65 uninstall:
66
67 # ========== DEPENDENCIES FOR CLEANUP ==========
68
69 mostlyclean:
70 rm -f *.o *~
71
72 clean: mostlyclean
73 rm -f version.c
74
75 distclean: clean
76 rm -f Makefile
77
78 realclean: distclean
79
80 superclean: realclean
81
82 # ========== DEPENDENCIES FOR MAINTENANCE ==========
83
84 subdir = config
85
86 Makefile: Makefile.in ../config.status
87 cd .. && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= ./config.status
88
89 distdir = ../`cat ../distname`/$(subdir)
90 nmhdist: $(DIST)
91 @echo "Copying distribution files in $(subdir)"
92 @for file in $(DIST); do \
93 cp -p $(srcdir)/$$file $(distdir); \
94 done
95