diff options
author | hpa <hpa> | 1998-02-06 00:19:20 +0000 |
---|---|---|
committer | hpa <hpa> | 1998-02-06 00:19:20 +0000 |
commit | 41515023b3f350883ae4d7e6c15a71cb9123bccf (patch) | |
tree | 08aca78c47ea3395168ee206a4403d5f363f6e35 | |
parent | c722e2135cb8b8bca8359afabda8e3b41d2ab253 (diff) | |
download | syslinux-41515023b3f350883ae4d7e6c15a71cb9123bccf.tar.gz |
Finished "make release" mechanism.
-rw-r--r-- | Makefile | 26 | ||||
-rw-r--r-- | ldlinux.asm | 2 |
2 files changed, 23 insertions, 5 deletions
@@ -22,10 +22,15 @@ LDFLAGS = -O2 -s BINDIR = /usr/bin +VERSION = $(shell cat version) + .c.o: $(CC) $(CFLAGS) -c $< -TARGETS=bootsect.bin ldlinux.sys syslinux.com syslinux +SOURCES = ldlinux.asm syslinux.asm syslinux.c +TARGETS = bootsect.bin ldlinux.sys syslinux.com syslinux +DOCS = COPYING NEWS README TODO syslinux.doc +OTHER = Makefile bin2c.pl now.pl version all: $(TARGETS) ls -l $(TARGETS) @@ -38,7 +43,7 @@ DATE = $(shell perl now.pl) endif ldlinux.bin: ldlinux.asm - $(NASM) -f bin -dDATE_STR="'$(DATE)'" -l ldlinux.lst -o ldlinux.bin ldlinux.asm + $(NASM) -f bin -dVERSION="'$(VERSION)'" -dDATE_STR="'$(DATE)'" -l ldlinux.lst -o ldlinux.bin ldlinux.asm bootsect.bin: ldlinux.bin dd if=ldlinux.bin of=bootsect.bin bs=512 count=1 @@ -62,10 +67,10 @@ install: all install -c syslinux $(BINDIR) tidy: - rm -f *.bin *.lst *.sys *.o *_bin.c + rm -f ldlinux.bin *.lst *.o *_bin.c clean: tidy - rm -f syslinux syslinux.com + rm -f $(TARGETS) dist: tidy rm -f *~ \#* @@ -75,7 +80,20 @@ dist: tidy # for release. Please do not "make official" and distribute the binaries, # please. # +.PHONY: official release + official: $(MAKE) clean $(MAKE) all DATE=`date +'%Y-%m-%d'` $(MAKE) dist + +release: + -rm -rf release/syslinux-$(VERSION) + -rm -f release/syslinux-$(VERSION).* + mkdir -p release/syslinux-$(VERSION) + cp $(SOURCES) $(DOCS) $(OTHER) release/syslinux-$(VERSION) + make -C release/syslinux-$(VERSION) official + cd release ; tar cvvf - syslinux-$(VERSION) | \ + gzip -9 > syslinux-$(VERSION).tar.gz + cd release/syslinux-$(VERSION) ; \ + zip -9r ../syslinux-$(VERSION).zip * diff --git a/ldlinux.asm b/ldlinux.asm index 886706cc..a89357b2 100644 --- a/ldlinux.asm +++ b/ldlinux.asm @@ -35,7 +35,7 @@ retry_count equ 6 ; How patient are we with the disk? ; ; Should be updated with every release to avoid bootsector/SYS file mismatch ; -%define version_str '1.31' ; Must be 4 characters long! +%define version_str VERSION ; Must be 4 characters long! %define date DATE_STR ; Defined from the Makefile %define year '1998' ; |