2006-04-13 20:47:06 +00:00
|
|
|
# GNU Makefile to prepare source and binary distributions.
|
|
|
|
# make -f MakeDistributions [source|binary]
|
|
|
|
|
2006-08-14 20:36:30 +00:00
|
|
|
SOURCEFILES=GNU.TXT buildlic.txt \
|
2006-04-13 20:47:06 +00:00
|
|
|
Makefile Makefile.deps Makefile.msvc Makefile.watcom MakeDistributions \
|
2006-05-11 20:35:40 +00:00
|
|
|
makemsc.bat makew.bat ChangeLog.html duke3d.def.sample \
|
2006-04-13 20:47:06 +00:00
|
|
|
SEHELP.HLP STHELP.HLP ChangeLog enhance.con.sample
|
|
|
|
|
2006-08-14 20:36:30 +00:00
|
|
|
BINARYFILES=mapster32.exe eduke32.exe GNU.TXT buildlic.txt \
|
2006-05-11 20:35:40 +00:00
|
|
|
ChangeLog.html setup.exe duke3d.def.sample SEHELP.HLP STHELP.HLP \
|
|
|
|
ChangeLog enhance.con.sample duke3d_w32.exe
|
2006-04-13 20:47:06 +00:00
|
|
|
|
|
|
|
.PHONY: source binary
|
|
|
|
|
|
|
|
datenow=$(shell date +%Y%m%d)
|
|
|
|
|
|
|
|
sourcedir=eduke32_src_$(datenow)
|
|
|
|
binarydir=eduke32_$(datenow)
|
|
|
|
|
|
|
|
all: source binary
|
|
|
|
|
|
|
|
source:
|
|
|
|
rm -rf $(sourcedir) $(sourcedir).zip
|
|
|
|
mkdir -p $(sourcedir) $(sourcedir)/eobj $(sourcedir)/obj
|
2006-04-15 03:12:08 +00:00
|
|
|
mkdir -p $(sourcedir)/eobj.nix $(sourcedir)/obj.nix
|
2006-04-13 20:47:06 +00:00
|
|
|
touch $(sourcedir)/eobj/keep.me $(sourcedir)/obj/keep.me
|
2006-04-15 03:12:08 +00:00
|
|
|
touch $(sourcedir)/eobj.nix/keep.me $(sourcedir)/obj.nix/keep.me
|
2006-04-13 20:47:06 +00:00
|
|
|
cp $(SOURCEFILES) $(sourcedir)
|
|
|
|
find . -name "*~" -exec rm -rf '{}' ';';
|
|
|
|
find . -name "*.orig" -exec rm -rf '{}' ';';
|
|
|
|
find . -name "*.rej" -exec rm -rf '{}' ';';
|
2006-04-15 23:23:50 +00:00
|
|
|
find . -name "*.mine" -exec rm -rf '{}' ';';
|
|
|
|
find . -name "*.c.r*" -exec rm -rf '{}' ';';
|
2006-07-18 21:08:38 +00:00
|
|
|
find . -name "*.h.r*" -exec rm -rf '{}' ';';
|
2006-10-15 18:59:45 +00:00
|
|
|
cp -R source rsrc $(sourcedir)
|
2006-04-13 20:47:06 +00:00
|
|
|
find $(sourcedir) | grep -i svn | xargs rm -rf
|
|
|
|
kzip -r $(sourcedir).zip $(sourcedir)
|
|
|
|
|
|
|
|
binary:
|
|
|
|
make RELEASE=1
|
2006-07-27 01:51:06 +00:00
|
|
|
# upx -9 mapster32.exe eduke32.exe duke3d_w32.exe setup.exe
|
2006-04-13 20:47:06 +00:00
|
|
|
rm -rf $(binarydir)
|
|
|
|
mkdir $(binarydir)
|
|
|
|
# mkdir $(binarydir) $(binarydir)/models
|
|
|
|
cp $(BINARYFILES) $(binarydir)
|
|
|
|
# cp models/* $(binarydir)/models
|
|
|
|
kzip -r $(binarydir).zip $(binarydir)
|
|
|
|
|