diff options
author | H. Peter Anvin <hpa@zytor.com> | 2008-07-07 15:21:56 -0700 |
---|---|---|
committer | H. Peter Anvin <hpa@zytor.com> | 2008-07-07 15:21:56 -0700 |
commit | 07ff8e874b0bd1d1c4fa893c94063fbedf6e3315 (patch) | |
tree | 38fdb21cf0feb6a7c68acdc767833a9b25edb504 /Makefile | |
parent | fd40500625723610a9abe7fb20775da4d88ca4dc (diff) | |
download | syslinux-elf-07ff8e874b0bd1d1c4fa893c94063fbedf6e3315.tar.gz syslinux-elf-07ff8e874b0bd1d1c4fa893c94063fbedf6e3315.tar.xz syslinux-elf-07ff8e874b0bd1d1c4fa893c94063fbedf6e3315.zip |
Centralize more of the version number machinery
Centralize more (most) of the version number machinery to version.pl.
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 14 |
1 files changed, 7 insertions, 7 deletions
@@ -15,8 +15,7 @@ # topdir = . include $(topdir)/MCONFIG - -VERSION := $(shell cat version) +-include $(topdir)/version.mk # # The BTARGET refers to objects that are derived from ldlinux.asm; we @@ -31,7 +30,7 @@ VERSION := $(shell cat version) # syslinux.exe is BTARGET so as to not require everyone to have the # mingw suite installed -BTARGET = version.gen version.h +BTARGET = version.gen version.h version.mk BOBJECTS = $(BTARGET) \ mbr/mbr.bin mbr/gptmbr.bin \ core/pxelinux.0 core/isolinux.bin core/isolinux-debug.bin \ @@ -46,7 +45,7 @@ BOBJECTS = $(BTARGET) \ # for "make installer". BSUBDIRS = codepage core memdisk com32 mbr memdump gpxe sample \ libinstaller dos win32 -ITARGET = +ITARGET = IOBJECTS = $(ITARGET) dos/copybs.com utils/gethostip utils/mkdiskimage \ mtools/syslinux linux/syslinux extlinux/extlinux ISUBDIRS = libinstaller mtools linux extlinux utils @@ -89,10 +88,11 @@ installer: installer-local: $(ITARGET) $(BINFILES) version.gen: version version.pl - $(PERL) version.pl $< $@ '%define' - + $(PERL) version.pl $< $@ '%define < @' version.h: version version.pl - $(PERL) version.pl $< $@ '#define' + $(PERL) version.pl $< $@ '#define < @' +version.mk: version version.pl + $(PERL) version.pl $< $@ '< := @' local-install: installer mkdir -m 755 -p $(INSTALLROOT)$(BINDIR) |