X-Git-Url: http://git.onelab.eu/?p=myops.git;a=blobdiff_plain;f=Makefile;h=d05a8c19c1f27401ba095495b67233778f92ecc9;hp=3e7a7d60d0741664386b9bd6c6b5da1aea14866f;hb=HEAD;hpb=1023e81d941cd877ae9d9cf261a5f5231b7a6c2a diff --git a/Makefile b/Makefile index 3e7a7d6..d05a8c1 100644 --- a/Makefile +++ b/Makefile @@ -12,9 +12,13 @@ main.FILE := myops-1.0.tar.bz2 # Thierry - when called from within the build, PWD is /build SOURCEFILES := $(main.FILE) +all: rpm + $(main.FILE): #FORCE rm -f myops-1.0.tar.bz2 - tar -jchvf myops-1.0.tar.bz2 -C ../ myops-1.0 + ( test -d $(PWD)/../myops-1.0 && unlink $(PWD)/../myops-1.0/ ) || echo "none" + ln -s $(PWD) $(PWD)/../myops-1.0 + tar -jchvf myops-1.0.tar.bz2 --exclude .git --exclude *.bz2 -C ../ myops-1.0 @echo "hello" sources: $(SOURCEFILES) @@ -36,4 +40,6 @@ rpm: sources clean: rm -f *.rpm *.tgz *.bz2 *.gz - rm *.pyc *.dat *.log + rm -rf myops-1.0 + unlink $(PWD)/../myops-1.0 + rm -f *.pyc *.dat *.log