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