From 6cd4589640924b91dff20425ccc5255dc45b40f7 Mon Sep 17 00:00:00 2001 From: Olaf Rempel Date: Sun, 16 Apr 2006 20:12:46 +0200 Subject: [PATCH] fix archive creation - do not pack doc/* - include version in filename --- .gitignore | 3 ++- Makefile | 13 +++++++------ 2 files changed, 9 insertions(+), 7 deletions(-) diff --git a/.gitignore b/.gitignore index 964ab9f..456eebc 100644 --- a/.gitignore +++ b/.gitignore @@ -2,6 +2,7 @@ *.d hlswmaster hlswmaster.log +doc doc/* masterquery -hlswmaster-ng.tar.gz +hlswmaster-ng-*.tar.gz diff --git a/Makefile b/Makefile index ac8ae90..a18b6d2 100644 --- a/Makefile +++ b/Makefile @@ -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)