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
25 $(MAKE) all DATE=`date +'%Y-%m-%d'`
29 -rm -rf release/syslinux-$(VERSION)
30 -rm -f release/syslinux-$(VERSION).*
31 mkdir -p release/syslinux-$(VERSION)
32 cp $(SOURCES) $(DOCS) $(OTHER) release/syslinux-$(VERSION)
33 ln $(PRIVATE) release/syslinux-$(VERSION)
34 cd release/syslinux-$(VERSION) && $(MAKE) official
35 cd release/syslinux-$(VERSION) && rm -f $(PRIVATE)
36 cd release && tar cvvf - syslinux-$(VERSION) | \
37 gzip -9 > syslinux-$(VERSION).tar.gz
38 cd release/syslinux-$(VERSION) && \
39 zip -9r ../syslinux-$(VERSION).zip *
42 PRERELDIR := release/syslinux-$(VERSION)-pre
43 PRERELNO := $(shell cat $(PRERELDIR)/.prerel 2>/dev/null || echo 1)
44 PREREL := syslinux-$(VERSION)-pre$(PRERELNO)
48 -rm -rf $(PRERELDIR)/$(PREREL)
49 -rm -f $(PRERELDIR)/$(PREREL).*
50 mkdir -p $(PRERELDIR)/$(PREREL)
51 cp $(SOURCES) $(DOCS) $(OTHER) $(PRERELDIR)/$(PREREL)
52 make -C $(PRERELDIR)/$(PREREL) spotless
53 make -C $(PRERELDIR)/$(PREREL) all DATE=`printf '%s-pre%d ' $(VERSION) $(PRERELNO) | dd bs=10 count=1 2>/dev/null`
54 make -C $(PRERELDIR)/$(PREREL) dist
55 cd $(PRERELDIR)/$(PREREL) && \
57 cd $(PRERELDIR) && tar cvvf - $(PREREL) | \
58 gzip -9 > $(PREREL).tar.gz
60 uuencode $(PREREL).tar.gz $(PREREL).tar.gz > $(PREREL).uu
61 cd $(PRERELDIR)/$(PREREL) && \
62 zip -9r ../$(PREREL).zip *
63 expr $(PRERELNO) + 1 > $(PRERELDIR)/.prerel