source: trunk/third/nmh/etc/Makefile.in @ 13159

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