X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=Makefile;fp=Makefile;h=333189185823c550be156c0ae13a5cb280efbbe4;hb=4a4544bae4f7961f76cc84b1748493af41bc2f15;hp=d35cc7a3dd58d8dae78c11ca539b5bfa5840b525;hpb=14bb43a97e0eab101d28feba19d836a4868cf185;p=build.git diff --git a/Makefile b/Makefile index d35cc7a3..33318918 100644 --- a/Makefile +++ b/Makefile @@ -392,9 +392,7 @@ endef # $(1)/ gets cleaned up if job cannot be done define fetch_git_module mkdir $(1) ; \ - (git archive --remote=$($(1).gitrepo) $($(1).gittag) | tar -C $(1) -xf - ) || \ - (echo "==================== git archive FAILED, trying git clone instead" ; \ - git clone $($(1).gitrepo) $(1); cd $(1) ; git checkout $($(1).gittag) ; rm -rf .git ) || \ + ( git clone $($(1).gitrepo) $(1); cd $(1) ; git checkout $($(1).gittag) ; rm -rf .git ) || \ { rm -rf $(1); false; } endef @@ -452,8 +450,8 @@ endif ### this utility allows to extract various info from a spec file ### and to define them in makefiles # use the C code where it works as it's the original one, use the python code otherwise -spec2make: spec2make.c - $(CC) -g -Wall $< -o $@ -lrpm -lrpmbuild -lrpmio -lpopt || ln -s spec2make.py $@ +spec2make: spec2make.py + ln -s spec2make.py $@ ### run spec2make on the spec file and include the result # usage: spec2make package @@ -511,6 +509,9 @@ tarballs: $(ALLTARBALLS) @echo $(words $(ALLTARBALLS)) source tarballs OK .PHONY: tarballs +SOURCES/%.tar.xz: SOURCES/% + tar chpJf $@ -C SOURCES $* + SOURCES/%.tar.bz2: SOURCES/% tar chpjf $@ -C SOURCES $*