Commit 12580fa4 authored by Claes Sjofors's avatar Claes Sjofors

Documentation basecomponents

parent 6a30b721
...@@ -16,6 +16,7 @@ endif ...@@ -16,6 +16,7 @@ endif
vpath %.gif $(hw_source):$(os_source):$(co_source) vpath %.gif $(hw_source):$(os_source):$(co_source)
vpath %.png $(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 @@ gif_sources := $(sort \ ...@@ -28,6 +29,15 @@ gif_sources := $(sort \
) \ ) \
) )
png_sources := $(sort \
$(foreach file, \
$(foreach dir, \
$(source_dirs), \
$(wildcard $(dir)/*.png) \
), $(notdir $(file)) \
) \
)
html_sources := $(sort \ html_sources := $(sort \
$(foreach file, \ $(foreach file, \
$(foreach dir, \ $(foreach dir, \
...@@ -38,8 +48,10 @@ html_sources := $(sort \ ...@@ -38,8 +48,10 @@ html_sources := $(sort \
) )
export_gif := $(patsubst %.gif,$(doc_dir)/en_us/orm/%.gif,$(gif_sources)) 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)) export_html := $(patsubst %.html,$(doc_dir)/en_us/orm/%.html,$(html_sources))
clean_gif := $(patsubst %.gif,clean_%.gif,$(gif_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)) clean_html := $(patsubst %.html,clean_%.html,$(html_sources))
.SUFFIXES: .SUFFIXES:
...@@ -50,6 +62,12 @@ $(doc_dir)/en_us/orm/%.gif : %.gif ...@@ -50,6 +62,12 @@ $(doc_dir)/en_us/orm/%.gif : %.gif
@ $(cp) $(cpflags) $(source) $(doc_dir)/sv_se/orm @ $(cp) $(cpflags) $(source) $(doc_dir)/sv_se/orm
@ $(cp) $(cpflags) $(source) $(doc_dir)/help @ $(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 $(doc_dir)/en_us/orm/%.html : ../../%.html
@ $(log_h_h) @ $(log_h_h)
@ $(cp) $(cpflags) $(source) $(target) @ $(cp) $(cpflags) $(source) $(target)
...@@ -57,13 +75,13 @@ $(doc_dir)/en_us/orm/%.html : ../../%.html ...@@ -57,13 +75,13 @@ $(doc_dir)/en_us/orm/%.html : ../../%.html
@ $(cp) $(cpflags) $(source) $(doc_dir)/help @ $(cp) $(cpflags) $(source) $(doc_dir)/help
.PHONY : all init copy lib exe clean realclean \ .PHONY : all init copy lib exe clean realclean \
$(clean_gif) $(clean_gif) $(clean_png)
all : init copy lib exe all : init copy lib exe
init : init :
copy : $(export_gif) $(export_html) copy : $(export_gif) $(export_png) $(export_html)
lib : lib :
...@@ -72,11 +90,14 @@ exe : ...@@ -72,11 +90,14 @@ exe :
clean : clean :
realclean : clean $(clean_gif) $(clean_html) $(clean_c) realclean : clean $(clean_gif) $(clean_png) $(clean_html) $(clean_c)
$(clean_gif) : clean_%.gif : %.gif $(clean_gif) : clean_%.gif : %.gif
@ $(rm) $(rmflags) $(doc_dir)/orm/$*.gif @ $(rm) $(rmflags) $(doc_dir)/orm/$*.gif
$(clean_png) : clean_%.png : %.png
@ $(rm) $(rmflags) $(doc_dir)/orm/$*.png
$(clean_html) : clean_%.html : %.html $(clean_html) : clean_%.html : %.html
@ $(rm) $(rmflags) $(doc_dir)/orm/$*.html @ $(rm) $(rmflags) $(doc_dir)/orm/$*.html
......
This source diff could not be displayed because it is too large. You can view the blob instead.
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