mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-11-18 18:21:38 +00:00
44 lines
1.3 KiB
Text
44 lines
1.3 KiB
Text
|
# GNU Makefile to prepare source and binary distributions.
|
||
|
# make -f MakeDistributions [source|binary]
|
||
|
|
||
|
SOURCEFILES=build.cfg GNU.TXT \
|
||
|
Makefile Makefile.deps Makefile.msvc Makefile.watcom MakeDistributions \
|
||
|
makemsc.bat makew.bat jfduke_releasenotes.html duke3d.def.sample \
|
||
|
SEHELP.HLP STHELP.HLP ChangeLog enhance.con.sample
|
||
|
|
||
|
BINARYFILES=build.cfg mapster32.exe eduke32.exe GNU.TXT \
|
||
|
jfduke_releasenotes.html setup.exe duke3d.def.sample SEHELP.HLP STHELP.HLP \
|
||
|
ChangeLog enhance.con.sample
|
||
|
|
||
|
.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
|
||
|
touch $(sourcedir)/eobj/keep.me $(sourcedir)/obj/keep.me
|
||
|
cp $(SOURCEFILES) $(sourcedir)
|
||
|
find . -name "*~" -exec rm -rf '{}' ';';
|
||
|
find . -name "*.orig" -exec rm -rf '{}' ';';
|
||
|
find . -name "*.rej" -exec rm -rf '{}' ';';
|
||
|
cp -R source rsrc $(sourcedir)
|
||
|
find $(sourcedir) | grep -i svn | xargs rm -rf
|
||
|
kzip -r $(sourcedir).zip $(sourcedir)
|
||
|
|
||
|
binary:
|
||
|
make RELEASE=1
|
||
|
upx mapster32.exe eduke32.exe
|
||
|
rm -rf $(binarydir)
|
||
|
mkdir $(binarydir)
|
||
|
# mkdir $(binarydir) $(binarydir)/models
|
||
|
cp $(BINARYFILES) $(binarydir)
|
||
|
# cp models/* $(binarydir)/models
|
||
|
kzip -r $(binarydir).zip $(binarydir)
|
||
|
|