Makefile
changeset 81 a95b2fa896e9
parent 79 a8b434605895
child 82 90da520cbaa5
equal deleted inserted replaced
80:1088ce57d3c9 81:a95b2fa896e9
    49 
    49 
    50 ifneq ("$(DIST)","")
    50 ifneq ("$(DIST)","")
    51 include $(src)/$(DIST).mk
    51 include $(src)/$(DIST).mk
    52 endif
    52 endif
    53 
    53 
    54 OWN_PROJECTS=beremiz matiec $(OWN_PROJECTS_EX)
    54 OWN_PROJECTS=beremiz matiec canfestival
    55 
    55 
    56 define get_revision
    56 define get_revision
    57 $(1)_revision?=$(lastword $(shell grep $(1) $(src)/revisions.txt))
    57 $(1)_revision?=$(lastword $(shell grep $(1) $(src)/revisions.txt))
    58 endef
    58 endef
    59 $(foreach project,$(OWN_PROJECTS),$(eval $(call get_revision,$(project))))
    59 $(foreach project,$(OWN_PROJECTS),$(eval $(call get_revision,$(project))))
    81 $(foreach project,$(OWN_PROJECTS),$(eval $(call make_src_rule,$(project))))
    81 $(foreach project,$(OWN_PROJECTS),$(eval $(call make_src_rule,$(project))))
    82 
    82 
    83 own_sources: $(foreach project,$(OWN_PROJECTS), sources/$(project)_src)
    83 own_sources: $(foreach project,$(OWN_PROJECTS), sources/$(project)_src)
    84 	touch $@
    84 	touch $@
    85 
    85 
       
    86 all_sources: own_sources sources/open62541_src
       
    87 	touch $@
       
    88 
       
    89 sources/open62541_src:
       
    90 	rm -rf sources/open62541
       
    91 	$(call get_src_http,https://github.com/open62541/open62541/archive/refs/tags,v1.3.2.tar.gz)\
       
    92 	tar -xzf $$dld
       
    93 	mv open62541-1.3.2 sources/open62541
       
    94 	
       
    95 
    86 define show_revision_details
    96 define show_revision_details
    87 echo -n $(1) "revision is: "; hg -R $(HGROOT)/$(1) id -r $($(1)_revisionid);
    97 echo -n $(1) "revision is: "; hg -R $(HGROOT)/$(1) id -r $($(1)_revisionid);
    88 endef
    98 endef
    89 
    99 
    90 revisions.txt: $(src)/revisions.txt own_sources
   100 revisions.txt: $(src)/revisions.txt own_sources