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.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
37 # ========= DEPENDENCIES FOR BUILDING ==========
41 install: 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 \
50 $(INSTALL_DATA) "$(srcdir)/$$file" "$(DESTDIR)$(etcdir)/$$file.dist"; \
51 echo "$(DESTDIR)$(etcdir)/$$file has local modifications; installing with .dist suffix"; \
54 $(INSTALL_DATA) $(srcdir)/$$file $(DESTDIR)$(etcdir)/$$file; \
58 uninstall: uninstall-etc-files
61 for file in $(STATIC_FILES) ; do \
62 rm -f $(DESTDIR)$(etcdir)/$$file; \
65 # ========== DEPENDENCIES FOR CLEANUP ==========
79 # ========== DEPENDENCIES FOR MAINTENANCE ==========
83 Makefile: Makefile.in ../config.status
84 cd .. && ./config.status $(subdir)/$@