2 # Makefile for etc subdirectory
9 top_srcdir = @top_srcdir@
14 exec_prefix = @exec_prefix@
19 mailspool = @mailspool@
22 INSTALL_PROGRAM = @INSTALL_PROGRAM@
23 INSTALL_DATA = @INSTALL_DATA@
25 # Path to search for programs to handle MIME
26 # content. Used to create mhn.defaults
27 MHNSEARCHPATH = "$(PATH):/usr/demo/SOUND"
29 # Program used to search path for various programs to
30 # handle MIME content. Used to create mhn.defaults
31 MHNSEARCHPROG = $(srcdir)/mhn.find.sh
37 # format and components files
38 DIST_FILES = mhl.body mhl.digest mhl.format mhl.forward mhl.headers \
39 mhl.reply scan.default scan.mailx scan.nomime scan.size scan.time \
40 scan.timely scan.unseen components digestcomps distcomps \
41 forwcomps rcvdistcomps replcomps replgroupcomps MailAliases
43 # format and configuration files to generate
44 GEN_FILES = mhn.defaults mts.conf
46 # data files we need to install
47 FILES = $(DIST_FILES) $(GEN_FILES)
53 AUX = Makefile.in mhn.defaults.sh mhn.find.sh mts.conf.in
55 # all files in this directory included in the distribution
56 DIST = $(DIST_FILES) $(SCRIPTS) $(AUX)
58 # ========= DEPENDENCIES FOR BUILDING ==========
62 mhn.defaults: $(srcdir)/mhn.defaults.sh $(MHNSEARCHPROG)
64 $(srcdir)/mhn.defaults.sh $(MHNSEARCHPATH) $(MHNSEARCHPROG) > $@
66 mts.conf: $(srcdir)/mts.conf.in
68 $(SED) -e 's,%mailspool%,$(mailspool),' \
69 -e 's,%etcdir%,$(etcdir),' < $(srcdir)/mts.conf.in > $@
71 install: install-files install-scripts
74 $(top_srcdir)/mkinstalldirs $(etcdir)
75 for file in $(DIST_FILES); do \
76 if [ -f $(etcdir)/$$file ]; then \
77 mv $(etcdir)/$$file $(etcdir)/$$file.old; \
79 $(INSTALL_DATA) $(srcdir)/$$file $(etcdir)/$$file; \
81 for file in $(GEN_FILES); do \
82 if [ -f $(etcdir)/$$file ]; then \
83 mv $(etcdir)/$$file $(etcdir)/$$file.old; \
85 $(INSTALL_DATA) $$file $(etcdir)/$$file; \
89 $(top_srcdir)/mkinstalldirs $(libdir)
90 for script in $(SCRIPTS); do \
91 $(INSTALL_PROGRAM) $(srcdir)/$$script $(libdir)/$$script; \
94 uninstall: uninstall-files uninstall-scripts
97 for file in $(FILES); do \
98 rm -f $(etcdir)/$$file; \
102 for script in $(SCRIPTS); do \
103 rm -f $(libdir)/$$script; \
106 # ========== DEPENDENCIES FOR CLEANUP ==========
119 superclean: realclean
121 # ========== DEPENDENCIES FOR MAINTENANCE ==========
125 Makefile: Makefile.in ../config.status
126 cd .. && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= ./config.status
128 distdir = ../`cat ../distname`/$(subdir)
130 @echo "Copying distribution files in $(subdir)"
131 @for file in $(DIST); do \
132 cp -p $(srcdir)/$$file $(distdir); \