Commit 5edfcc8f authored by claes's avatar claes

png files handled

parent 9ab7b5d6
......@@ -16,6 +16,7 @@ endif
vpath %.gif $(hw_source):$(os_source):$(co_source)
vpath %.png $(hw_source):$(os_source):$(co_source)
source_dirs := $(hw_source) $(os_source) $(co_source)
......@@ -27,6 +28,14 @@ gif_sources := $(sort \
), $(notdir $(file)) \
) \
)
png_sources := $(sort \
$(foreach file, \
$(foreach dir, \
$(source_dirs), \
$(wildcard $(dir)/*.png) \
), $(notdir $(file)) \
) \
)
html_sources := $(sort \
$(foreach file, \
......@@ -38,8 +47,10 @@ html_sources := $(sort \
)
export_gif := $(patsubst %.gif,$(doc_dir)/en_us/orm/%.gif,$(gif_sources))
export_png := $(patsubst %.png,$(doc_dir)/en_us/orm/%.png,$(png_sources))
export_html := $(patsubst %.html,$(doc_dir)/en_us/orm/%.html,$(html_sources))
clean_gif := $(patsubst %.gif,clean_%.gif,$(gif_sources))
clean_png := $(patsubst %.png,clean_%.png,$(png_sources))
clean_html := $(patsubst %.html,clean_%.html,$(html_sources))
.SUFFIXES:
......@@ -50,6 +61,12 @@ $(doc_dir)/en_us/orm/%.gif : %.gif
@ $(cp) $(cpflags) $(source) $(doc_dir)/sv_se/orm
@ $(cp) $(cpflags) $(source) $(doc_dir)/help
$(doc_dir)/en_us/orm/%.png : %.png
@ $(log_h_h)
@ $(cp) $(cpflags) $(source) $(target)
@ $(cp) $(cpflags) $(source) $(doc_dir)/sv_se/orm
@ $(cp) $(cpflags) $(source) $(doc_dir)/help
$(doc_dir)/en_us/orm/%.html : ../../%.html
@ $(log_h_h)
@ $(cp) $(cpflags) $(source) $(target)
......@@ -57,13 +74,13 @@ $(doc_dir)/en_us/orm/%.html : ../../%.html
@ $(cp) $(cpflags) $(source) $(doc_dir)/help
.PHONY : all init copy lib exe clean realclean \
$(clean_gif)
$(clean_gif) $(clean_png)
all : init copy lib exe
init :
copy : $(export_gif) $(export_html)\
copy : $(export_gif) $(export_png) $(export_html)\
$(doc_dir)/en_us/orm/orm.css
lib :
......@@ -78,6 +95,9 @@ realclean : clean $(clean_gif) $(clean_html) $(clean_c)
$(clean_gif) : clean_%.gif : %.gif
@ $(rm) $(rmflags) $(doc_dir)/orm/$*.gif
$(clean_png) : clean_%.png : %.png
@ $(rm) $(rmflags) $(doc_dir)/orm/$*.png
$(clean_html) : clean_%.html : %.html
@ $(rm) $(rmflags) $(doc_dir)/orm/$*.html
......
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