1 ## -*- makefile -*- ------------------------------------------------------
3 ## Copyright 2000-2002 H. Peter Anvin - All Rights Reserved
5 ## This program is free software; you can redistribute it and/or modify
6 ## it under the terms of the GNU General Public License as published by
7 ## the Free Software Foundation, Inc., 675 Mass Ave, Cambridge MA 02139,
8 ## USA; either version 2 of the License, or (at your option) any later
9 ## version; incorporated herein by reference.
11 ## -----------------------------------------------------------------------
15 # This should only be used by the maintainer to generate official binaries
16 # for release. Please do not "make official" and distribute the binaries,
19 .PHONY: official release
21 PRIVATE = Makefile.private .depend memdisk/.depend com32/lib
24 cp isolinux-debug.bin isolinux-test/isolinux/isolinux.bin
26 -b isolinux/isolinux.bin -c isolinux/boot.cat \
27 -no-emul-boot -boot-load-size 4 -boot-info-table \
28 -o isolinux.iso isolinux-test
31 cdrecord -v blank=fast isolinux.iso
35 $(MAKE) all DATE=`date +'%Y-%m-%d'`
39 cvs tag -F `echo syslinux-$(VERSION) | sed -e 's/\./_/g'`
40 -rm -rf release/syslinux-$(VERSION)
41 -rm -f release/syslinux-$(VERSION).*
42 mkdir -p release/syslinux-$(VERSION)
43 cp -dR $(SOURCES) $(DOCS) $(OTHER) release/syslinux-$(VERSION)
44 find release/syslinux-$(VERSION) -name CVS -type d -print0 | \
46 ln -f $(PRIVATE) release/syslinux-$(VERSION)
47 cd release/syslinux-$(VERSION) && $(MAKE) depend
48 cd release/syslinux-$(VERSION) && $(MAKE) official
49 cd release/syslinux-$(VERSION) && rm -rf $(PRIVATE)
50 cd release && tar cvvf - syslinux-$(VERSION) | \
51 gzip -9 > syslinux-$(VERSION).tar.gz
52 cd release/syslinux-$(VERSION) && \
53 zip -9r ../syslinux-$(VERSION).zip *
56 PRERELDIR := release/syslinux-$(VERSION)-pre
57 PRERELNO := $(shell cat $(PRERELDIR)/.prerel 2>/dev/null || echo 1)
58 PREREL := syslinux-$(VERSION)-pre$(PRERELNO)
61 cvs tag -F `echo $(PREREL) | sed -e 's/\./_/g'`
62 mkdir -p $(PRERELDIR) $(PRERELDIR)/uu
63 -rm -rf $(PRERELDIR)/$(PREREL)
64 -rm -f $(PRERELDIR)/$(PREREL).*
65 mkdir -p $(PRERELDIR)/$(PREREL)
66 cp -dR $(SOURCES) $(DOCS) $(OTHER) $(PRERELDIR)/$(PREREL)
67 find $(PRERELDIR)/$(PREREL) -name CVS -type d -print0 | \
69 make -C $(PRERELDIR)/$(PREREL) spotless
70 make -C $(PRERELDIR)/$(PREREL) all DATE=`printf '%s-pre%d ' $(VERSION) $(PRERELNO) | dd bs=10 count=1 2>/dev/null`
71 make -C $(PRERELDIR)/$(PREREL) dist
72 cd $(PRERELDIR)/$(PREREL) && \
74 cd $(PRERELDIR) && tar cvvf - $(PREREL) | \
75 gzip -9 > $(PREREL).tar.gz
77 uuencode $(PREREL).tar.gz $(PREREL).tar.gz > uu/$(PREREL).uu
78 cd $(PRERELDIR)/$(PREREL) && \
79 zip -9r ../$(PREREL).zip *
80 expr $(PRERELNO) + 1 > $(PRERELDIR)/.prerel
83 expr $(PRERELNO) - 1 > $(PRERELDIR)/.prerel
84 @echo Next release will be syslinux-$(VERSION)-pre`cat $(PRERELDIR)/.prerel`