Commit 8eacf814 authored by Claes Sjofors's avatar Claes Sjofors

../../../../profibus/exp/gsd/src/si02806a.gse

parent a17f1d02
...@@ -15,6 +15,7 @@ ifndef rules_mk ...@@ -15,6 +15,7 @@ ifndef rules_mk
endif endif
vpath %.gsd $(hw_source):$(os_source):$(co_source) vpath %.gsd $(hw_source):$(os_source):$(co_source)
vpath %.gse $(hw_source):$(os_source):$(co_source)
vpath %.xml $(hw_source):$(os_source):$(co_source) vpath %.xml $(hw_source):$(os_source):$(co_source)
source_dirs = $(hw_source) $(os_source) $(co_source) source_dirs = $(hw_source) $(os_source) $(co_source)
...@@ -28,6 +29,15 @@ gsd_sources := $(sort \ ...@@ -28,6 +29,15 @@ gsd_sources := $(sort \
) \ ) \
) )
gse_sources := $(sort \
$(foreach file, \
$(foreach dir, \
$(source_dirs), \
$(wildcard $(dir)/*.gse) \
), $(notdir $(file)) \
) \
)
xml_sources := $(sort \ xml_sources := $(sort \
$(foreach file, \ $(foreach file, \
$(foreach dir, \ $(foreach dir, \
...@@ -39,18 +49,20 @@ xml_sources := $(sort \ ...@@ -39,18 +49,20 @@ xml_sources := $(sort \
export_gsd := $(patsubst %.gsd, $(exe_dir)/%.gsd, $(gsd_sources)) export_gsd := $(patsubst %.gsd, $(exe_dir)/%.gsd, $(gsd_sources))
clean_gsd := $(patsubst %.gsd, clean_%.gsd, $(gsd_sources)) clean_gsd := $(patsubst %.gsd, clean_%.gsd, $(gsd_sources))
export_gse := $(patsubst %.gse, $(exe_dir)/%.gse, $(gse_sources))
clean_gse := $(patsubst %.gse, clean_%.gse, $(gse_sources))
export_xml := $(patsubst %.xml, $(exe_dir)/%.xml, $(xml_sources)) export_xml := $(patsubst %.xml, $(exe_dir)/%.xml, $(xml_sources))
clean_xml := $(patsubst %.xml, clean_%.xml, $(xml_sources)) clean_xml := $(patsubst %.xml, clean_%.xml, $(xml_sources))
.PHONY : all init copy lib exe clean realclean\ .PHONY : all init copy lib exe clean realclean\
$(clean_gsd) $(clean_xml) $(clean_gsd) $(clean_gse) $(clean_xml)
all : init copy all : init copy
init : init :
copy : $(export_gsd) $(export_xml) copy : $(export_gsd) $(export_gse) $(export_xml)
lib : lib :
...@@ -58,7 +70,7 @@ exe : ...@@ -58,7 +70,7 @@ exe :
clean : clean :
realclean : clean $(clean_gsd) $(clean_xml) realclean : clean $(clean_gsd) $(clean_gse) $(clean_xml)
$(export_gsd) : $(exe_dir)/%.gsd : %.gsd $(export_gsd) : $(exe_dir)/%.gsd : %.gsd
@ echo "Exporting $< ..." @ echo "Exporting $< ..."
...@@ -67,6 +79,13 @@ $(export_gsd) : $(exe_dir)/%.gsd : %.gsd ...@@ -67,6 +79,13 @@ $(export_gsd) : $(exe_dir)/%.gsd : %.gsd
$(clean_gsd) : clean_%.gsd : %.gsd $(clean_gsd) : clean_%.gsd : %.gsd
@ rm $(exe_dir)/$*.gsd @ rm $(exe_dir)/$*.gsd
$(export_gse) : $(exe_dir)/%.gse : %.gse
@ echo "Exporting $< ..."
@ $(cp) $(cpflags) $(source) $(target)
$(clean_gse) : clean_%.gse : %.gse
@ rm $(exe_dir)/$*.gse
$(export_xml) : $(exe_dir)/%.xml : %.xml $(export_xml) : $(exe_dir)/%.xml : %.xml
@ echo "Exporting $< ..." @ echo "Exporting $< ..."
@ $(cp) $(cpflags) $(source) $(target) @ $(cp) $(cpflags) $(source) $(target)
......
This source diff could not be displayed because it is too large. You can view the blob instead.
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment