Use the same mh_hostname() function from test/common.h in mhsign(1)
[mmh] / etc / Makefile.in
1 #
2 # Makefile for etc subdirectory
3 #
4
5 SHELL = /bin/sh
6
7 top_srcdir = @top_srcdir@
8 srcdir     = @srcdir@
9 VPATH      = @srcdir@
10
11 prefix      = @prefix@
12 exec_prefix = @exec_prefix@
13 bindir      = @bindir@
14 libdir      = @libdir@
15 etcdir      = @sysconfdir@
16
17 mailspool   = @mailspool@
18
19 INSTALL         = @INSTALL@
20 INSTALL_PROGRAM = @INSTALL_PROGRAM@
21 INSTALL_SCRIPT  = @INSTALL_SCRIPT@
22 INSTALL_DATA    = @INSTALL_DATA@
23
24 SED = sed
25
26 .SUFFIXES:
27
28 # static configuration, format, and components files
29 STATIC_FILES = components digestcomps distcomps forwcomps \
30                mhl.body mhl.format mhl.forward mhl.headers \
31                mhl.reply rcvdistcomps rcvdistcomps.outbox \
32                replcomps replgroupcomps scan.MMDDYY scan.YYYYMMDD \
33                scan.nmh scan.mailx scan.nomime scan.size scan.time \
34                scan.timely scan.unseen scan.meillo scan.default \
35                mhn.defaults repllistcomps
36
37 # ========= DEPENDENCIES FOR BUILDING ==========
38
39 all:
40
41 install: install-etc-files
42
43 install-etc-files:
44         mkdir -p $(DESTDIR)$(etcdir)
45         for file in $(STATIC_FILES); do \
46           if [ -f "$(DESTDIR)$(etcdir)/$$file" ]; then \
47             if cmp -s "$(srcdir)/$$file" "$(DESTDIR)$(etcdir)/$$file" ; then \
48               :; \
49             else \
50               $(INSTALL_DATA) "$(srcdir)/$$file" "$(DESTDIR)$(etcdir)/$$file.dist"; \
51               echo "$(DESTDIR)$(etcdir)/$$file has local modifications; installing with .dist suffix"; \
52             fi; \
53           else \
54             $(INSTALL_DATA) $(srcdir)/$$file $(DESTDIR)$(etcdir)/$$file; \
55           fi; \
56         done
57
58 uninstall: uninstall-etc-files
59
60 uninstall-etc-files:
61         for file in $(STATIC_FILES) ; do \
62           rm -f $(DESTDIR)$(etcdir)/$$file; \
63         done
64
65 # ========== DEPENDENCIES FOR CLEANUP ==========
66
67 mostlyclean:
68         rm -f *~
69
70 clean: mostlyclean
71
72 distclean: clean
73         rm -f Makefile
74
75 realclean: distclean
76
77 superclean: realclean
78
79 # ========== DEPENDENCIES FOR MAINTENANCE ==========
80
81 subdir = etc
82
83 Makefile: Makefile.in ../config.status
84         cd .. && ./config.status $(subdir)/$@
85