1 ## -*- makefile -*- ------------------------------------------------------
3 ## Copyright 2000 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
23 isolinux.iso: isolinux-debug.bin
24 cp isolinux-debug.bin isolinux-test/isolinux/isolinux.bin
25 mkisofs -v -r -J -o isolinux.iso isolinux-test
28 cdrecord -v blank=fast isolinux.iso
32 $(MAKE) all DATE=`date +'%Y-%m-%d'`
36 cvs tag -F `echo syslinux-$(VERSION) | sed -e 's/\./_/g'`
37 -rm -rf release/syslinux-$(VERSION)
38 -rm -f release/syslinux-$(VERSION).*
39 mkdir -p release/syslinux-$(VERSION)
40 cp -r $(SOURCES) $(DOCS) $(OTHER) release/syslinux-$(VERSION)
41 find release/syslinux-$(VERSION) -name CVS -type d -print0 | \
43 ln $(PRIVATE) release/syslinux-$(VERSION)
44 cd release/syslinux-$(VERSION) && $(MAKE) official
45 cd release/syslinux-$(VERSION) && rm -f $(PRIVATE)
46 cd release && tar cvvf - syslinux-$(VERSION) | \
47 gzip -9 > syslinux-$(VERSION).tar.gz
48 cd release/syslinux-$(VERSION) && \
49 zip -9r ../syslinux-$(VERSION).zip *
52 PRERELDIR := release/syslinux-$(VERSION)-pre
53 PRERELNO := $(shell cat $(PRERELDIR)/.prerel 2>/dev/null || echo 1)
54 PREREL := syslinux-$(VERSION)-pre$(PRERELNO)
57 cvs tag -F `echo $(PREREL) | sed -e 's/\./_/g'`
58 mkdir -p $(PRERELDIR) $(PRERELDIR)/uu
59 -rm -rf $(PRERELDIR)/$(PREREL)
60 -rm -f $(PRERELDIR)/$(PREREL).*
61 mkdir -p $(PRERELDIR)/$(PREREL)
62 cp -r $(SOURCES) $(DOCS) $(OTHER) $(PRERELDIR)/$(PREREL)
63 find $(PRERELDIR)/$(PREREL) -name CVS -type d -print0 | \
65 make -C $(PRERELDIR)/$(PREREL) spotless
66 make -C $(PRERELDIR)/$(PREREL) all DATE=`printf '%s-pre%d ' $(VERSION) $(PRERELNO) | dd bs=10 count=1 2>/dev/null`
67 make -C $(PRERELDIR)/$(PREREL) dist
68 cd $(PRERELDIR)/$(PREREL) && \
70 cd $(PRERELDIR) && tar cvvf - $(PREREL) | \
71 gzip -9 > $(PREREL).tar.gz
73 uuencode $(PREREL).tar.gz $(PREREL).tar.gz > uu/$(PREREL).uu
74 cd $(PRERELDIR)/$(PREREL) && \
75 zip -9r ../$(PREREL).zip *
76 expr $(PRERELNO) + 1 > $(PRERELDIR)/.prerel