aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>1998-03-29 10:26:20 +0000
committerH. Peter Anvin <hpa@zytor.com>1998-03-29 10:26:20 +0000
commite1dbb9fe60aa8bf48b07ce2896838f76cc98e226 (patch)
tree87f278ba5cb3d2738aa2061a17a01a18474dfe7e /Makefile
parent43d9d88fd0160c7beecba8b78227cc7247e8d6e9 (diff)
downloadautofs3-e1dbb9fe60aa8bf48b07ce2896838f76cc98e226.tar.gz
autofs3-e1dbb9fe60aa8bf48b07ce2896838f76cc98e226.tar.xz
autofs3-e1dbb9fe60aa8bf48b07ce2896838f76cc98e226.zip
Make autofs self-configuring (using autoconf)
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile15
1 files changed, 14 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 6d327bd..31b6609 100644
--- a/Makefile
+++ b/Makefile
@@ -16,7 +16,7 @@ kernel:
all: daemon kernel
-clean:
+clean: configure
for i in $(SUBDIRS) kernel; do \
if [ -d $$i ]; then $(MAKE) -C $$i clean; fi; done
@@ -28,10 +28,23 @@ install_kernel:
mrproper distclean: clean
find . -noleaf \( -name '*~' -o -name '#*' -o -name '*.orig' -o -name '*.rej' -o -name '*.old' \) -print0 | xargs -0 rm -f
+ -rm -f include/config.h Makefile.conf config.*
TODAY := $(shell date +'%Y%m%d')
backup: mrproper
cd .. ; tar cf - autofs | gzip -9 > autofs-bu-$(TODAY).tar.gz
+configure: configure.in aclocal.m4
+ autoconf
+ rm -f config.*
+
+configure.in: .version
+ -rm -f .autofs-*
+ touch .autofs-`cat .version`
+ sed -e "s/(\.autofs-[0-9.]\+)/(.autofs-`cat .version`)/" < configure.in > configure.in.tmp
+ mv -f configure.in.tmp configure.in
+
-include Makefile.private
+
+