aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorhpa <hpa>1998-12-03 09:12:04 +0000
committerhpa <hpa>1998-12-03 09:12:04 +0000
commitd83a8ffb2fed533a8c6cb86866515d15573fb08d (patch)
treec684818664efdc866f2624f5bbf14dd333f26204
parentfc83f8c2afc99823e7127ad7dc22efc2d8db55b3 (diff)
downloadsyslinux.git-d83a8ffb2fed533a8c6cb86866515d15573fb08d.tar.gz
syslinux.git-d83a8ffb2fed533a8c6cb86866515d15573fb08d.tar.xz
syslinux.git-d83a8ffb2fed533a8c6cb86866515d15573fb08d.zip
Store all pre-releases in a subdirectory.
-rw-r--r--Makefile27
1 files changed, 16 insertions, 11 deletions
diff --git a/Makefile b/Makefile
index 038e0db8..5a8d6476 100644
--- a/Makefile
+++ b/Makefile
@@ -112,16 +112,21 @@ release:
cd release/syslinux-$(VERSION) ; \
zip -9r ../syslinux-$(VERSION).zip *
+
+PREREL := syslinux-$(VERSION)-$(DATE)
+PRERELDIR := release/syslinux-$(VERSION)-prerel
+
prerel:
- -rm -rf release/syslinux-$(VERSION)-$(DATE)
- -rm -f release/syslinux-$(VERSION)-$(DATE).*
- mkdir -p release/syslinux-$(VERSION)-$(DATE)
+ mkdir -p $(PRERELDIR)
+ -rm -rf $(PRERELDIR)/$(PREREL)
+ -rm -f $(PRERELDIR)/$(PREREL).*
+ mkdir -p $(PRERELDIR)/$(PREREL)
cp $(SOURCES) $(DOCS) $(OTHER) release/syslinux-$(VERSION)-$(DATE)
- make -C release/syslinux-$(VERSION)-$(DATE) clean
- make -C release/syslinux-$(VERSION)-$(DATE) HEXDATE="$(DATE)"
- make -C release/syslinux-$(VERSION)-$(DATE) dist
- cd release && tar cvvf - syslinux-$(VERSION)-$(DATE) | \
- gzip -9 > syslinux-$(VERSION)-$(DATE).tar.gz
- cd release && uuencode syslinux-$(VERSION)-$(DATE).tar.gz syslinux-$(VERSION)-$(DATE).tar.gz > syslinux-$(VERSION)-$(DATE).uu
- cd release/syslinux-$(VERSION)-$(DATE) && \
- zip -9r ../syslinux-$(VERSION)-$(DATE).zip *
+ make -C $(PRERELDIR)/$(PREREL) clean
+ make -C $(PRERELDIR)/$(PREREL) HEXDATE="$(DATE)"
+ make -C $(PRERELDIR)/$(PREREL) dist
+ cd $(PRERELDIR) && tar cvvf - $(PREREL) | \
+ gzip -9 > $(PREREL).tar.gz
+ cd $(PRERELDIR) && uuencode $(PREREL).tar.gz $(PREREL).tar.gz > $(PREREL).uu
+ cd $(PRERELDIR)/$(PREREL) && \
+ zip -9r ../$(PREREL).zip *