From 757e068be201696d9dccbfea5fccb6f5f8fb32f7 Mon Sep 17 00:00:00 2001 From: leo Date: Fri, 6 Jul 2012 03:08:48 +0000 Subject: [PATCH] Fixed makefile source targets. --- Makefile | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/Makefile b/Makefile index d78a5a8f..0c3a054a 100644 --- a/Makefile +++ b/Makefile @@ -16,7 +16,7 @@ SRC := BIN := bin/leocad -ifeq ($(findstring $(MAKECMDGOALS), help config-help config clean veryclean), ) +ifeq ($(findstring $(MAKECMDGOALS), help config-help config clean veryclean source-tgz source-zip), ) -include $(OSDIR)/config.mk endif @@ -46,7 +46,7 @@ bin: @mkdir bin ### Include the C/C++ include dependencies -ifeq ($(findstring $(MAKECMDGOALS), help config-help config clean veryclean), ) +ifeq ($(findstring $(MAKECMDGOALS), help config-help config clean veryclean source-tgz source-zip), ) -include $(OBJ:.o=.d) endif @@ -137,12 +137,11 @@ arch/leocad-$(VERSION)-linux.tgz: package-dir tar -cvzf $@ leocad-$(VERSION) rm -rf leocad-$(VERSION) -arch/leocad-$(VERSION)-src.tgz: arch veryclean +arch/leocad-$(VERSION)-src.tgz: veryclean arch rm -f $@ - ( cd .. ; tar --exclude=leocad/arch/\* --exclude=CVS \ - -cvzf leocad/$@ leocad ) + ( cd .. ; tar --exclude=leocad/arch/\* --exclude=.svn -cvzf leocad/$@ leocad ) -arch/leocad-$(VERSION)-src.zip: arch veryclean +arch/leocad-$(VERSION)-src.zip: veryclean arch rm -f $@ - ( cd .. ; zip -r leocad/$@ leocad -x '*/arch/*' -x '*/CVS/*' -x '*~' -x '*/core' -x '*/.#*') + ( cd .. ; zip -r leocad/$@ leocad -x '*/arch/*' -x '*/.svn/*' -x '*~' -x '*/core' -x '*/.#*')