## -*- makefile -*- ------------------------------------------------------ ## ## Copyright 2000 H. Peter Anvin - All Rights Reserved ## ## This program is free software; you can redistribute it and/or modify ## it under the terms of the GNU General Public License as published by ## the Free Software Foundation, Inc., 675 Mass Ave, Cambridge MA 02139, ## USA; either version 2 of the License, or (at your option) any later ## version; incorporated herein by reference. ## ## ----------------------------------------------------------------------- # $Id$ # # This should only be used by the maintainer to generate official binaries # for release. Please do not "make official" and distribute the binaries, # please. # .PHONY: official release PRIVATE = Makefile.private official: $(MAKE) spotless $(MAKE) all DATE=`date +'%Y-%m-%d'` $(MAKE) dist release: cvs tag -F `echo syslinux-$(VERSION) | sed -e 's/\./_/g'` -rm -rf release/syslinux-$(VERSION) -rm -f release/syslinux-$(VERSION).* mkdir -p release/syslinux-$(VERSION) cp -r $(SOURCES) $(DOCS) $(OTHER) release/syslinux-$(VERSION) find release/syslinux-$(VERSION) -name CVS -type d -print0 | \ xargs -0rt rm -rf ln $(PRIVATE) release/syslinux-$(VERSION) cd release/syslinux-$(VERSION) && $(MAKE) official cd release/syslinux-$(VERSION) && rm -f $(PRIVATE) cd release && tar cvvf - syslinux-$(VERSION) | \ gzip -9 > syslinux-$(VERSION).tar.gz cd release/syslinux-$(VERSION) && \ zip -9r ../syslinux-$(VERSION).zip * PRERELDIR := release/syslinux-$(VERSION)-pre PRERELNO := $(shell cat $(PRERELDIR)/.prerel 2>/dev/null || echo 1) PREREL := syslinux-$(VERSION)-pre$(PRERELNO) prerel: cvs tag -F `echo $(PREREL) | sed -e 's/\./_/g'` mkdir -p $(PRERELDIR) $(PRERELDIR)/uu -rm -rf $(PRERELDIR)/$(PREREL) -rm -f $(PRERELDIR)/$(PREREL).* mkdir -p $(PRERELDIR)/$(PREREL) cp -r $(SOURCES) $(DOCS) $(OTHER) $(PRERELDIR)/$(PREREL) find $(PRERELDIR)/$(PREREL) -name CVS -type d -print0 | \ xargs -0rt rm -rf make -C $(PRERELDIR)/$(PREREL) spotless make -C $(PRERELDIR)/$(PREREL) all DATE=`printf '%s-pre%d ' $(VERSION) $(PRERELNO) | dd bs=10 count=1 2>/dev/null` make -C $(PRERELDIR)/$(PREREL) dist cd $(PRERELDIR)/$(PREREL) && \ rm -f $(PRIVATE) cd $(PRERELDIR) && tar cvvf - $(PREREL) | \ gzip -9 > $(PREREL).tar.gz cd $(PRERELDIR) && \ uuencode $(PREREL).tar.gz $(PREREL).tar.gz > uu/$(PREREL).uu cd $(PRERELDIR)/$(PREREL) && \ zip -9r ../$(PREREL).zip * expr $(PRERELNO) + 1 > $(PRERELDIR)/.prerel