currently i have a lil app i wrote (verbuild) which I call after I build my stuff to auto inc the build number in 'VERSION' file... and make exports the contents of VERSION via -D to the code on compilation...
seems an ugly way of doing it tho....
hows everyone else do it?
the code is ugly, but works fine....
if anyone is interested, to use it....
at top of your Makefile
Code: Select all
include VERSION
Code: Select all
EXTRAFLAGS=-DVERSION='"$(VERSION)"'
....
gcc $(EXTRAFLAGS)
Code: Select all
all : loader.exe verbuild.exe
loader.exe: $(OBJS)
$(LD) $(LDFLAGS) $(OBJS) -o loader.exe
verbuild.exe:
verbuild.exe
anyone got better way of doing it? (no perl or python etc thanks, i have sed+awk tho... never learnt to use em)...
(compiled+tested uner vc6.0 and gcc)
oh, it also looks + updates 'version' file in CURRENT directory...
[attachment deleted by admin]
