diff options
author | hpa <hpa> | 1998-02-04 06:23:54 +0000 |
---|---|---|
committer | hpa <hpa> | 1998-02-04 06:23:54 +0000 |
commit | 33b9acb9131a220ef50c5eed897fbfc4cb60d5bf (patch) | |
tree | 2ee8118ecc88016ddd756ffaec92597d07d9a4b1 /Makefile | |
parent | 912235c360970d4ae3f039f4d473da26884a2613 (diff) | |
download | syslinux-33b9acb9131a220ef50c5eed897fbfc4cb60d5bf.tar.gz |
I think we're pretty much ready to rock!
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 19 |
1 files changed, 18 insertions, 1 deletions
@@ -30,8 +30,15 @@ TARGETS=bootsect.bin ldlinux.sys syslinux.com syslinux all: $(TARGETS) ls -l $(TARGETS) +# The DATE is set on the make command line when building binaries for +# official release. Otherwise, substitute a hex string that is pretty much +# guaranteed to be unique to be unique from build to build. +ifndef DATE +DATE = $(shell perl now.pl) +endif + ldlinux.bin: ldlinux.asm - $(NASM) -f bin -dHEX_TIME="`perl now.pl`" -l ldlinux.lst -o ldlinux.bin ldlinux.asm + $(NASM) -f bin -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,3 +69,13 @@ clean: tidy dist: tidy rm -f *~ \#* + +# +# This should only be used by the maintainer to generate official binaries +# for release. Please do not "make official" and distribute the binaries, +# please. +# +official: + $(MAKE) clean + $(MAKE) all DATE=`date +'%Y-%m-%d'` + $(MAKE) dist |