Updated build scripts to create source, Linux x86, and Windows archives.
This commit is contained in:
parent
b4761e43a9
commit
4b20d0f535
|
@ -11,7 +11,10 @@ REVISION=$2
|
||||||
SIZE=0
|
SIZE=0
|
||||||
|
|
||||||
make clean
|
make clean
|
||||||
make
|
make src-dist
|
||||||
|
|
||||||
|
make clean
|
||||||
|
make LOCALE_DIR=locale
|
||||||
make dist
|
make dist
|
||||||
|
|
||||||
rm -rf tbftss
|
rm -rf tbftss
|
||||||
|
|
|
@ -25,7 +25,6 @@ cp -r music $OUT
|
||||||
cp -r sound $OUT
|
cp -r sound $OUT
|
||||||
cp -r manual $OUT
|
cp -r manual $OUT
|
||||||
cp -r locale $OUT
|
cp -r locale $OUT
|
||||||
cp CHANGELOG $OUT
|
|
||||||
cp LICENSE $OUT
|
cp LICENSE $OUT
|
||||||
cp README.md $OUT
|
cp README.md $OUT
|
||||||
|
|
||||||
|
|
14
makefile
14
makefile
|
@ -25,7 +25,9 @@ CXXFLAGS += -g -lefence
|
||||||
|
|
||||||
LFLAGS := `sdl2-config --libs` -lSDL2_mixer -lSDL2_image -lSDL2_ttf -lm
|
LFLAGS := `sdl2-config --libs` -lSDL2_mixer -lSDL2_image -lSDL2_ttf -lm
|
||||||
|
|
||||||
DIST_FILES = data gfx manual music sound src LICENSE makefile* common.mk README.md CHANGELOG
|
SHARED_FILES = LICENSE README.md data gfx manual music sound
|
||||||
|
DIST_FILES = $(SHARED_FILES) locale tbftss
|
||||||
|
SRC_DIST_FILES = $(SHARED_FILES) src makefile* common.mk CHANGELOG
|
||||||
|
|
||||||
# linking the program.
|
# linking the program.
|
||||||
$(PROG): $(OBJS)
|
$(PROG): $(OBJS)
|
||||||
|
@ -76,6 +78,16 @@ dist:
|
||||||
$(RM) -rf $(PROG)-$(VERSION)
|
$(RM) -rf $(PROG)-$(VERSION)
|
||||||
mkdir $(PROG)-$(VERSION)
|
mkdir $(PROG)-$(VERSION)
|
||||||
cp -r $(DIST_FILES) $(PROG)-$(VERSION)
|
cp -r $(DIST_FILES) $(PROG)-$(VERSION)
|
||||||
|
tar czf $(PROG)-$(VERSION)-$(REVISION).linux-x86.tar.gz $(PROG)-$(VERSION)
|
||||||
|
mkdir -p dist
|
||||||
|
mv $(PROG)-$(VERSION)-$(REVISION).linux-x86.tar.gz dist
|
||||||
|
$(RM) -rf $(PROG)-$(VERSION)
|
||||||
|
|
||||||
|
# prepare an archive for the program
|
||||||
|
src-dist:
|
||||||
|
$(RM) -rf $(PROG)-$(VERSION)
|
||||||
|
mkdir $(PROG)-$(VERSION)
|
||||||
|
cp -r $(SRC_DIST_FILES) $(PROG)-$(VERSION)
|
||||||
git log --oneline --decorate >$(PROG)-$(VERSION)/CHANGELOG.raw
|
git log --oneline --decorate >$(PROG)-$(VERSION)/CHANGELOG.raw
|
||||||
tar czf $(PROG)-$(VERSION)-$(REVISION).src.tar.gz $(PROG)-$(VERSION)
|
tar czf $(PROG)-$(VERSION)-$(REVISION).src.tar.gz $(PROG)-$(VERSION)
|
||||||
mkdir -p dist
|
mkdir -p dist
|
||||||
|
|
Loading…
Reference in New Issue