mhmail is for sending, but not for reading mail.
[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 mailspool      = @mailspool@
22
23 CC         = @CC@
24 CFLAGS     = @CFLAGS@
25 DEFS       = @DEFS@
26 INCLUDES   = -I$(top_srcdir) @CPPFLAGS@
27 CONFIGDEFS = -DNMHETCDIR='"$(etcdir)"' \
28                 -DSENDMAILPATH='"$(sendmailpath)"' \
29                 -DMAILSPOOL='"$(mailspool)"'
30
31 COMPILE  = $(CC) -c $(DEFS) $(INCLUDES) $(CFLAGS)
32 COMPILE2 = $(CC) -c $(DEFS) $(CONFIGDEFS) $(INCLUDES) $(CFLAGS)
33
34 .SUFFIXES:
35 .SUFFIXES: .c .o
36
37 .c.o:
38         $(COMPILE) $<
39
40 # source files
41 SRCS = config.c
42
43 # object files
44 OBJS = config.o version.o
45
46 # auxiliary files
47 AUX = Makefile.in version.sh
48
49 # all files in this directory included in the distribution
50 DIST = $(SRCS) $(AUX)
51
52 # ========= DEPENDENCIES FOR BUILDING ==========
53
54 all: $(OBJS)
55
56 version.c:
57         ${srcdir}/version.sh $(VERSION) > version.c
58
59 config.o: config.c
60         $(COMPILE2) $(srcdir)/config.c
61
62 install:
63
64 uninstall:
65
66 lint:
67
68 # ========== DEPENDENCIES FOR CLEANUP ==========
69
70 mostlyclean:
71         rm -f *.o *~
72
73 clean: mostlyclean
74         rm -f version.c
75
76 distclean: clean
77         rm -f Makefile
78
79 realclean: distclean
80
81 superclean: realclean
82
83 # ========== DEPENDENCIES FOR MAINTENANCE ==========
84
85 subdir = config
86
87 Makefile: Makefile.in ../config.status
88         cd .. && ./config.status $(subdir)/$@
89
90 distdir = ../`cat ../distname`/$(subdir)
91 mmhdist: $(DIST)
92         @echo "Copying distribution files in $(subdir)"
93         @for file in $(DIST); do \
94           cp -p $(srcdir)/$$file $(distdir); \
95         done
96