aboutsummaryrefslogtreecommitdiffstats
path: root/samples/Makefile
blob: 39466bc95532afab906ecaa7d1f4f91154e27cd2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# $Id$

-include ../Makefile.conf
include ../Makefile.rules

all: rc.autofs

clean:
	rm -f rc.autofs

install: all
	-mv -f $(INSTALLROOT)/etc/auto.master $(INSTALLROOT)/etc/auto.master.old
	install -c auto.master -m 644 $(INSTALLROOT)/etc
	-mv -f $(INSTALLROOT)/etc/auto.misc $(INSTALLROOT)/etc/auto.misc.old
	install -c auto.misc   -m 644 $(INSTALLROOT)/etc
	install -c rc.autofs   -m 755 $(INSTALLROOT)$(initdir)/autofs

rc.autofs: rc.autofs.in
	sed -e "s|@@sbindir@@|$(sbindir)|g" \
	    -e "s|@@autofslibdir@@|$(autofslibdir)|g" \
	    -e "s|@@initdir@@|$(initdir)|g" < rc.autofs.in > rc.autofs