X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=Makefile;h=c9bd923cc0261ff323917ade99a2f6a2d3a6eb42;hb=61908f1c343871575276cc196ce9cab0b2ffedde;hp=fc2cf2a9f0ea728a7bacc8b781b3c598f25ae3d8;hpb=8d1e4e6f7e63a5f713187d6c6275b37581c69d34;p=build.git diff --git a/Makefile b/Makefile index fc2cf2a9..c9bd923c 100644 --- a/Makefile +++ b/Makefile @@ -294,10 +294,10 @@ define stage1_module_vars ifneq "$($(1)-SVNPATH)" "" $(1)-SVNPATH := $(strip $($(1)-SVNPATH)) else -$(1)-GITPATH := $(strip $($(1)-GITPATH)) -$(1).gitrepo := $(firstword $(subst @, ,$($(1)-GITPATH))) -$(1).gittag := $(word 2,$(subst @, ,$($(1)-GITPATH))) -$(1).gittag := $(if $($(1).gittag),$($(1).gittag),master) +$(1)-GITPATH := $$(strip $$($(1)-GITPATH)) +$(1).gitrepo := $$(firstword $$(subst @, ,$$($(1)-GITPATH))) +$(1).gittag := $$(word 2,$$(subst @, ,$$($(1)-GITPATH))) +$(1).gittag := $$(if $$($(1).gittag),$$($(1).gittag),master) endif endef @@ -405,7 +405,7 @@ endif ### this utility allows to extract various info from a spec file ### and to define them in makefiles spec2make: spec2make.c - $(CC) -g -Wall $< -o $@ -lrpm -lrpmbuild -lrpmio -lpopt + $(CC) -g -Wall $< -o $@ -lrpm -lrpmbuild -lrpmio -lpopt ### run spec2make on the spec file and include the result # usage: spec2make package @@ -769,10 +769,10 @@ info-branches: module-tools: @$(foreach module,$(ALL.modules), \ - $(if $($(module)-GITPATH), \ + $(if $($(module)-GITPATH), \ $(if $($(module)-BRANCH), \ - echo git:$(module):$($(module)-BRANCH); , \ - echo git:$(module); ), \ + echo $(module):$($(module)-BRANCH); , \ + echo $(module); ), \ $(if $($(module)-BRANCH), \ echo $(module):$($(module)-BRANCH); , \ echo $(module); )))