aboutsummaryrefslogtreecommitdiffstats
path: root/samples/Makefile
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>1999-03-07 22:37:23 +0000
committerH. Peter Anvin <hpa@zytor.com>1999-03-07 22:37:23 +0000
commit4f18e463590cc3940c82af59ae1e792b3d90f79f (patch)
treee1ff83e429232ec6430320ce7a613ea004cab3e0 /samples/Makefile
parent32817e0ee60f6aaaafc1e4e08da377cfde8ff182 (diff)
downloadautofs3-4f18e463590cc3940c82af59ae1e792b3d90f79f.tar.gz
autofs3-4f18e463590cc3940c82af59ae1e792b3d90f79f.tar.xz
autofs3-4f18e463590cc3940c82af59ae1e792b3d90f79f.zip
Make autofs hopefully work on both debian and redhat.
Diffstat (limited to 'samples/Makefile')
-rw-r--r--samples/Makefile7
1 files changed, 5 insertions, 2 deletions
diff --git a/samples/Makefile b/samples/Makefile
index 4e7ebf4..c7a216f 100644
--- a/samples/Makefile
+++ b/samples/Makefile
@@ -3,7 +3,7 @@
-include ../Makefile.conf
include ../Makefile.rules
-all:
+all: rc.autofs
clean:
@@ -12,4 +12,7 @@ install: all
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 744 $(INSTALLROOT)$(initdir)/autofs
+ install -c rc.autofs -m 755 $(INSTALLROOT)$(initdir)/autofs
+
+rc.autofs: rc.autofs.in
+ sed -e "s/@@sbindir@@/$(sbindir)/g" < rc.autofs.in > rc.autofs