summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>1995-09-21 23:14:07 +0000
committerRoland McGrath <roland@gnu.org>1995-09-21 23:14:07 +0000
commit43476ce23620d10db1c248a277871ce764a2877c (patch)
tree492fc076e0c7dcdf6d43afeba54d27b14f1158dd /Makefile
parent8c94a8712e71016b6bd6b535f34a4cc25646c516 (diff)
(hurd.boot): New target.
(all): Depend on hurd.boot (DIST_FILES): Add build.mk.in and hurd.boot.in. (clean-misc, distclean): New targets. (clean): Depend on clean-misc.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile22
1 files changed, 19 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index fec4ada4..14822cba 100644
--- a/Makefile
+++ b/Makefile
@@ -34,9 +34,11 @@ working-prog-subdirs := $(filter-out \
$(dir $(wildcard $(prog-subdirs:=/BROKEN)))),\
$(prog-subdirs))
DIST_FILES = COPYING Makeconf config.make.in configure.in configure \
- README NEWS tasks INSTALL README-binary hurd.boot
+ hurd.boot.in build.mk.in \
+ README NEWS tasks INSTALL README-binary
-all: $(addsuffix -all,$(lib-subdirs) $(working-prog-subdirs))
+all: hurd.boot \
+ $(addsuffix -all,$(lib-subdirs) $(working-prog-subdirs))
%-all:
$(MAKE) -C $* all
@@ -65,7 +67,7 @@ dist: hurd-snap $(addsuffix -lndist,$(filter-out $(subdirs-nodist), $(subdirs)))
tar cfz hurd-snap-$(date).tar.gz hurd-snap-$(date)
rm -rf hurd-snap-$(date)
-clean: $(addsuffix -clean,$(lib-subdirs)) $(addsuffix -clean,$(working-prog-subdirs))
+clean: $(addsuffix -clean,$(lib-subdirs)) $(addsuffix -clean,$(working-prog-subdirs)) clean-misc
relink: $(addsuffix -relink,$(prog-subdirs))
@@ -77,3 +79,17 @@ lndist-cthreads-h:
ln -s libthreads/cthreads.h $(srcdir)/hurd-snap/cthreads.h
TAGS: $(addsuffix -TAGS,$(prog-subdirs) $(lib-subdirs))
+
+hurd.boot: ${srcdir}/hurd.boot.in config.make
+ sed 's%@exec_prefix@%${exec_prefix}%g' $< > $@.new
+ mv -f $@.new $@
+
+.PHONY: clean-misc distclean
+clean-misc:
+ rm -f hurd.boot
+
+distclean: clean
+ rm -f config.make config.log config.status
+ifneq (.,${srcdir})
+ rm -f Makefile
+endif