Makefile
changeset 58 10707a4a3621
parent 57 5efb9c3180d1
child 59 872aa7d30b4f
equal deleted inserted replaced
57:5efb9c3180d1 58:10707a4a3621
    20 XVFBRUN ?= xvfb-run
    20 XVFBRUN ?= xvfb-run
    21 
    21 
    22 distfiles = $(src)/distfiles
    22 distfiles = $(src)/distfiles
    23 sfmirror = downloads
    23 sfmirror = downloads
    24 tmp := $(shell rm -rf $${TMPDIR:-/tmp}/beremiz_dist_build_tmp.* ; mktemp -d -t beremiz_dist_build_tmp.XXXXXXXXXX)
    24 tmp := $(shell rm -rf $${TMPDIR:-/tmp}/beremiz_dist_build_tmp.* ; mktemp -d -t beremiz_dist_build_tmp.XXXXXXXXXX)
       
    25 
       
    26 $(info $(shell env))
    25 
    27 
    26 define hg_get_archive
    28 define hg_get_archive
    27 	test -d $(HGROOT)/`basename $(1)` || hg --cwd $(HGROOT) clone $(HGREMOTE)`basename $(1)`;\
    29 	test -d $(HGROOT)/`basename $(1)` || hg --cwd $(HGROOT) clone $(HGREMOTE)`basename $(1)`;\
    28 	hg -R $(HGROOT)/`basename $(1)` archive $(2) $(1);\
    30 	hg -R $(HGROOT)/`basename $(1)` archive $(2) $(1);\
    29 	hg -R $(HGROOT)/`basename $(1)` id -i | sed 's/\+//' > $(1)/revision;
    31 	hg -R $(HGROOT)/`basename $(1)` id -i | sed 's/\+//' > $(1)/revision;
    74 sources/$(1)_src: sources/$(1)_$($(1)_revisionid)
    76 sources/$(1)_src: sources/$(1)_$($(1)_revisionid)
    75 	touch $$@
    77 	touch $$@
    76 
    78 
    77 sources/$(1)_$($(1)_revisionid): | sources
    79 sources/$(1)_$($(1)_revisionid): | sources
    78 	echo "Checkout HG source $(1)_$($(1)_revisionid)"
    80 	echo "Checkout HG source $(1)_$($(1)_revisionid)"
    79 	env
       
    80 	rm -rf sources/$(1)*
    81 	rm -rf sources/$(1)*
    81 	$(call get_src_hg,sources/$(1),-r $($(1)_revisionid))
    82 	$(call get_src_hg,sources/$(1),-r $($(1)_revisionid))
    82 	touch $$@
    83 	touch $$@
    83 endef
    84 endef
    84 $(foreach project,$(OWN_PROJECTS),$(eval $(call make_src_rule,$(project))))
    85 $(foreach project,$(OWN_PROJECTS),$(eval $(call make_src_rule,$(project))))