Commit f467e2e1 authored by claes's avatar claes

gif-files for xtt help

parent 8db6a8bc
......@@ -17,6 +17,7 @@ endif
vpath %.c $(hw_source):$(os_source):$(co_source)
vpath %.dat $(hw_source):$(os_source):$(co_source)
vpath %.gif $(hw_source):$(os_source):$(co_source)
source_dirs = $(hw_source) $(os_source) $(co_source)
......@@ -31,8 +32,21 @@ sources := $(sort \
c_sources := $(filter %.c,$(sources))
sources := $(sort \
$(foreach file, \
$(foreach dir, \
$(source_dirs), \
$(wildcard $(dir)/*.gif) \
), $(notdir $(file)) \
) \
)
gif_sources := $(filter %.gif,$(sources))
export_obj := $(patsubst %.c,$(obj_dir)/%.o,$(c_sources))
clean_obj := $(patsubst %.c,clean_%.o,$(c_sources))
export_gif := $(patsubst %.gif,$(exe_dir)/%.gif,$(gif_sources))
export_gifdoc := $(patsubst %.gif,$(doc_dir)/help/%.gif,$(gif_sources))
.PHONY : all init copy lib exe clean realclean\
$(clean_c)
......@@ -41,7 +55,7 @@ all : init copy lib
init :
copy : $(exe_dir)/xtt_help.dat $(exe_dir)/sv_se/pwrb_xtthelp.dat $(exe_dir)/pwr_logga.gif
copy : $(exe_dir)/xtt_help.dat $(exe_dir)/sv_se/pwrb_xtthelp.dat $(exe_dir)/pwr_logga.gif $(export_gif) $(export_gifdoc)
lib : $(export_obj)
......@@ -65,8 +79,19 @@ $(exe_dir)/pwr_logga.gif : ../../pwr_logga.gif
@ echo "Copying pwr_logga.gif"
@ $(cp) $(cpflags) $(source) $(target)
$(exe_dir)/%.gif : ../../%.gif
@ echo "Copying $(source).gif exe"
@ $(cp) $(cpflags) $(source) $(target)
$(doc_dir)/help/%.gif : ../../%.gif
@ echo "Copying $(source).gif doc/help"
@ $(cp) $(cpflags) $(source) $(target)
$(clean_obj) : clean_%.o : %.c
rm $(obj_dir)/$*.o
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