1 | # |
---|
2 | # Makefile for etc subdirectory |
---|
3 | # |
---|
4 | # $Id: Makefile.in,v 1.5 1999-06-02 00:20:47 danw Exp $ |
---|
5 | # |
---|
6 | |
---|
7 | SHELL = /bin/sh |
---|
8 | |
---|
9 | top_srcdir = @top_srcdir@ |
---|
10 | srcdir = @srcdir@ |
---|
11 | VPATH = @srcdir@ |
---|
12 | |
---|
13 | prefix = @prefix@ |
---|
14 | exec_prefix = @exec_prefix@ |
---|
15 | bindir = @bindir@ |
---|
16 | libdir = @libdir@ |
---|
17 | etcdir = @sysconfdir@ |
---|
18 | |
---|
19 | mailspool = @mailspool@ |
---|
20 | |
---|
21 | INSTALL = @INSTALL@ |
---|
22 | INSTALL_PROGRAM = @INSTALL_PROGRAM@ |
---|
23 | INSTALL_DATA = @INSTALL_DATA@ |
---|
24 | |
---|
25 | # Path to search for programs to handle MIME |
---|
26 | # content. Used to create mhn.defaults |
---|
27 | MHNSEARCHPATH = "$(PATH):/usr/demo/SOUND" |
---|
28 | |
---|
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 |
---|
32 | |
---|
33 | SED = sed |
---|
34 | |
---|
35 | .SUFFIXES: |
---|
36 | |
---|
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 \ |
---|
42 | mhn.defaults |
---|
43 | |
---|
44 | # format and configuration files to generate |
---|
45 | GEN_FILES = mts.conf |
---|
46 | |
---|
47 | # data files we need to install |
---|
48 | FILES = $(DIST_FILES) $(GEN_FILES) |
---|
49 | |
---|
50 | # scripts to install |
---|
51 | SCRIPTS = sendfiles |
---|
52 | |
---|
53 | # auxiliary files |
---|
54 | AUX = Makefile.in mhn.defaults.sh mhn.find.sh mts.conf.in |
---|
55 | |
---|
56 | # all files in this directory included in the distribution |
---|
57 | DIST = $(DIST_FILES) $(SCRIPTS) $(AUX) |
---|
58 | |
---|
59 | # ========= DEPENDENCIES FOR BUILDING ========== |
---|
60 | |
---|
61 | all: $(GEN_FILES) |
---|
62 | |
---|
63 | mts.conf: $(srcdir)/mts.conf.in |
---|
64 | rm -f $@ |
---|
65 | $(SED) -e 's,%mailspool%,$(mailspool),' \ |
---|
66 | -e 's,%etcdir%,$(etcdir),' < $(srcdir)/mts.conf.in > $@ |
---|
67 | |
---|
68 | install: install-files install-scripts |
---|
69 | |
---|
70 | install-files: |
---|
71 | $(top_srcdir)/mkinstalldirs $(DESTDIR)$(etcdir) |
---|
72 | for file in $(DIST_FILES); do \ |
---|
73 | $(INSTALL_DATA) $(srcdir)/$$file $(DESTDIR)$(etcdir)/$$file; \ |
---|
74 | done |
---|
75 | for file in $(GEN_FILES); do \ |
---|
76 | $(INSTALL_DATA) $$file $(DESTDIR)$(etcdir)/$$file; \ |
---|
77 | done |
---|
78 | |
---|
79 | install-scripts: |
---|
80 | $(top_srcdir)/mkinstalldirs $(DESTDIR)$(libdir) |
---|
81 | for script in $(SCRIPTS); do \ |
---|
82 | $(INSTALL_PROGRAM) $(srcdir)/$$script $(DESTDIR)$(libdir)/$$script; \ |
---|
83 | done |
---|
84 | |
---|
85 | uninstall: uninstall-files uninstall-scripts |
---|
86 | |
---|
87 | uninstall-files: |
---|
88 | for file in $(FILES); do \ |
---|
89 | rm -f $(DESTDIR)$(etcdir)/$$file; \ |
---|
90 | done |
---|
91 | |
---|
92 | uninstall-scripts: |
---|
93 | for script in $(SCRIPTS); do \ |
---|
94 | rm -f $(DESTDIR)$(libdir)/$$script; \ |
---|
95 | done |
---|
96 | |
---|
97 | # ========== DEPENDENCIES FOR CLEANUP ========== |
---|
98 | |
---|
99 | mostlyclean: |
---|
100 | rm -f *~ |
---|
101 | |
---|
102 | clean: mostlyclean |
---|
103 | rm -f $(GEN_FILES) |
---|
104 | |
---|
105 | distclean: clean |
---|
106 | rm -f Makefile |
---|
107 | |
---|
108 | realclean: distclean |
---|
109 | |
---|
110 | superclean: realclean |
---|
111 | |
---|
112 | # ========== DEPENDENCIES FOR MAINTENANCE ========== |
---|
113 | |
---|
114 | subdir = etc |
---|
115 | |
---|
116 | Makefile: Makefile.in ../config.status |
---|
117 | cd .. && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= ./config.status |
---|
118 | |
---|
119 | distdir = ../`cat ../distname`/$(subdir) |
---|
120 | nmhdist: $(DIST) |
---|
121 | @echo "Copying distribution files in $(subdir)" |
---|
122 | @for file in $(DIST); do \ |
---|
123 | cp -p $(srcdir)/$$file $(distdir); \ |
---|
124 | done |
---|
125 | |
---|