summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorThomas Bushnell <thomas@gnu.org>1996-07-29 16:50:49 +0000
committerThomas Bushnell <thomas@gnu.org>1996-07-29 16:50:49 +0000
commitb44e2e420330539375448c3f1de4400fe2bf4b4f (patch)
treeaaa4a09704fe3f8f296139d766b29a1ba8c35e01 /Makefile
parent7190a73769e240ff1e29048b83bd59f5e753f7d7 (diff)
*** empty log message ***
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile22
1 files changed, 14 insertions, 8 deletions
diff --git a/Makefile b/Makefile
index 07e95229..9525ef12 100644
--- a/Makefile
+++ b/Makefile
@@ -47,7 +47,7 @@ all: $(addsuffix -all,$(lib-subdirs) $(working-prog-subdirs))
%-all:
$(MAKE) -C $* all
-%-lndist: hurd-snap
+%-lndist: $(top_srcdir)/hurd-snap
$(MAKE) -C $* lndist no_deps=t
%-clean:
@@ -65,14 +65,20 @@ all: $(addsuffix -all,$(lib-subdirs) $(working-prog-subdirs))
%-TAGS:
$(MAKE) -C $* TAGS no_deps=t
-hurd-snap:
- mkdir hurd-snap
+$(srcdir)/hurd-snap:
+ mkdir $(srcdir)/hurd-snap
-date:=$(shell date +%y%m%d)
-dist: hurd-snap $(addsuffix -lndist,$(filter-out $(subdirs-nodist), $(subdirs))) lndist
- mv hurd-snap hurd-snap-$(date)
- tar cfz hurd-snap-$(date).tar.gz hurd-snap-$(date)
- rm -rf hurd-snap-$(date)
+ifeq ($(version),)
+version:=$(shell date +%y%m%d)
+dirname:=hurd-snap
+else
+dirname:=hurd
+endif
+
+dist: $(srcdir)/hurd-snap $(addsuffix -lndist,$(filter-out $(subdirs-nodist), $(subdirs))) lndist
+ mv $(srcdir)/hurd-snap $(srcdir)/$(dirname)-$(version)
+ tar cfz $(srcdir)/$(dirname)-$(version).tar.gz $(srcdir)/$(dirname)-$(version)
+ rm -rf $(srcdir)/$(dirname)-$(date)
clean: $(addsuffix -clean,$(lib-subdirs)) $(addsuffix -clean,$(working-prog-subdirs)) clean-misc