fix archive creation

- do not pack doc/*
- include version in filename
This commit is contained in:
Olaf Rempel 2006-04-16 20:12:46 +02:00
parent 02f775d7c2
commit 6cd4589640
2 changed files with 9 additions and 7 deletions

3
.gitignore vendored
View File

@ -2,6 +2,7 @@
*.d
hlswmaster
hlswmaster.log
doc
doc/*
masterquery
hlswmaster-ng.tar.gz
hlswmaster-ng-*.tar.gz

View File

@ -1,7 +1,7 @@
VERSION := '"v1.00"'
VERSION := v1.00
CFLAGS := -O2 -pipe -Wall -DVERSION=$(VERSION)
CXXFLAGS := -O2 -pipe -Wall -Wunused -Wno-deprecated -DVERSION=$(VERSION)
CFLAGS := -O2 -pipe -Wall -DVERSION='"$(VERSION)"'
CXXFLAGS := -O2 -pipe -Wall -Wunused -Wno-deprecated -DVERSION='"$(VERSION)"'
LIBS := -lpthread
HLSWMASTER_SRC := config.o gameentry.o gamelist.o gameparser.o gamescanner.o \
@ -26,16 +26,17 @@ masterquery: masterquery.o
dist: clean
ln -s . hlswmaster-ng
tar -czhf hlswmaster-ng.tar.gz hlswmaster-ng/ \
tar -czhf hlswmaster-ng-$(VERSION).tar.gz hlswmaster-ng/ \
--exclude hlswmaster-ng/.git \
--exclude hlswmaster-ng/.gitignore \
--exclude hlswmaster-ng/hlswmaster-ng.tar.gz \
--exclude hlswmaster-ng/doc \
--exclude hlswmaster-ng/hlswmaster-ng-$(VERSION).tar.gz \
--exclude hlswmaster-ng/hlswmaster-ng
rm hlswmaster-ng
clean:
rm -f hlswmaster masterquery *.d *.o *.log \
hlswmaster-ng hlswmaster-ng.tar.gz
hlswmaster-ng hlswmaster-ng-$(VERSION).tar.gz
##DEPS := $(wildcard *.cpp)
##-include $(DEPS:.cpp=.d)