diff options
Diffstat (limited to 'Documentation/DocBook/media/Makefile')
-rw-r--r-- | Documentation/DocBook/media/Makefile | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/Documentation/DocBook/media/Makefile b/Documentation/DocBook/media/Makefile index b7627e18fcc9..8cb27f346d0d 100644 --- a/Documentation/DocBook/media/Makefile +++ b/Documentation/DocBook/media/Makefile | |||
@@ -18,13 +18,14 @@ MEDIA_TEMP = media-entities.tmpl \ | |||
18 | net.h.xml \ | 18 | net.h.xml \ |
19 | video.h.xml \ | 19 | video.h.xml \ |
20 | 20 | ||
21 | IMGFILES := $(addprefix $(MEDIA_OBJ_DIR)/media/, $(notdir $(shell ls $(MEDIA_SRC_DIR)/*/*.gif $(MEDIA_SRC_DIR)/*/*.png))) | 21 | IMGFILES := $(patsubst %.b64,%, $(notdir $(shell ls $(MEDIA_SRC_DIR)/*.b64))) |
22 | OBJIMGFILES := $(addprefix $(MEDIA_OBJ_DIR)/, $(IMGFILES)) | ||
22 | GENFILES := $(addprefix $(MEDIA_OBJ_DIR)/, $(MEDIA_TEMP)) | 23 | GENFILES := $(addprefix $(MEDIA_OBJ_DIR)/, $(MEDIA_TEMP)) |
23 | 24 | ||
24 | PHONY += cleanmediadocs | 25 | PHONY += cleanmediadocs |
25 | 26 | ||
26 | cleanmediadocs: | 27 | cleanmediadocs: |
27 | -@rm `find $(MEDIA_OBJ_DIR) -type l` $(GENFILES) $(IMGFILES) 2>/dev/null | 28 | -@rm `find $(MEDIA_OBJ_DIR) -type l` $(GENFILES) $(OBJIMGFILES) 2>/dev/null |
28 | 29 | ||
29 | $(obj)/media_api.xml: $(GENFILES) FORCE | 30 | $(obj)/media_api.xml: $(GENFILES) FORCE |
30 | 31 | ||
@@ -155,10 +156,14 @@ DVB_DOCUMENTED = \ | |||
155 | # Media targets and dependencies | 156 | # Media targets and dependencies |
156 | # | 157 | # |
157 | 158 | ||
158 | $(MEDIA_OBJ_DIR)/v4l2.xml: | 159 | install_media_images = \ |
160 | $(Q)cp $(OBJIMGFILES) $(MEDIA_OBJ_DIR)/media_api | ||
161 | |||
162 | $(MEDIA_OBJ_DIR)/%: $(MEDIA_SRC_DIR)/%.b64 | ||
163 | $(Q)base64 -d $< >$@ | ||
164 | |||
165 | $(MEDIA_OBJ_DIR)/v4l2.xml: $(OBJIMGFILES) | ||
159 | @$($(quiet)gen_xml) | 166 | @$($(quiet)gen_xml) |
160 | @(mkdir -p $(MEDIA_OBJ_DIR)/media) | ||
161 | @(cp $(MEDIA_SRC_DIR)/dvb/*.png $(MEDIA_SRC_DIR)/v4l/*.gif $(MEDIA_OBJ_DIR)/media/) | ||
162 | @(ln -sf $(MEDIA_SRC_DIR)/v4l/*xml $(MEDIA_OBJ_DIR)/) | 167 | @(ln -sf $(MEDIA_SRC_DIR)/v4l/*xml $(MEDIA_OBJ_DIR)/) |
163 | @(ln -sf $(MEDIA_SRC_DIR)/dvb/*xml $(MEDIA_OBJ_DIR)/) | 168 | @(ln -sf $(MEDIA_SRC_DIR)/dvb/*xml $(MEDIA_OBJ_DIR)/) |
164 | 169 | ||