2 # Makefile for etc subdirectory
7 top_srcdir = @top_srcdir@
12 exec_prefix = @exec_prefix@
17 mailspool = @mailspool@
20 INSTALL_PROGRAM = @INSTALL_PROGRAM@
21 INSTALL_SCRIPT = @INSTALL_SCRIPT@
22 INSTALL_DATA = @INSTALL_DATA@
28 # static configuration, format, and components files
29 STATIC_FILES = components digestcomps distcomps forwcomps \
30 mhl.body mhl.digest 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 mhn.defaults
36 # auxiliary files (included in distribution but not installed)
39 # all non-generated files in this directory are included in the distribution
40 DIST = $(STATIC_FILES) $(AUX)
42 # ========= DEPENDENCIES FOR BUILDING ==========
46 install: install-etc-files
49 mkdir -p $(DESTDIR)$(etcdir)
50 for file in $(STATIC_FILES); do \
51 if [ -f "$(DESTDIR)$(etcdir)/$$file" ]; then \
52 if cmp -s "$(srcdir)/$$file" "$(DESTDIR)$(etcdir)/$$file" ; then \
55 $(INSTALL_DATA) "$(srcdir)/$$file" "$(DESTDIR)$(etcdir)/$$file.dist"; \
56 echo "$(DESTDIR)$(etcdir)/$$file has local modifications; installing with .dist suffix"; \
59 $(INSTALL_DATA) $(srcdir)/$$file $(DESTDIR)$(etcdir)/$$file; \
63 uninstall: uninstall-etc-files
66 for file in $(STATIC_FILES) ; do \
67 rm -f $(DESTDIR)$(etcdir)/$$file; \
70 # ========== DEPENDENCIES FOR CLEANUP ==========
84 # ========== DEPENDENCIES FOR MAINTENANCE ==========
88 Makefile: Makefile.in ../config.status
89 cd .. && ./config.status $(subdir)/$@
91 distdir = ../`cat ../distname`/$(subdir)
93 @echo "Copying distribution files in $(subdir)"
94 @for file in $(DIST); do \
95 cp -p $(srcdir)/$$file $(distdir); \