Permalink
Browse files

move images to img dir

  • Loading branch information...
1 parent 81a9529 commit eeb05b2d32c5b4344438b129c58097dadaef05de @zag committed Sep 12, 2012
Showing with 7 additions and 3 deletions.
  1. +7 −3 .writeat/rules.mk
View
@@ -12,9 +12,13 @@ install: $(HTML_NAME) html-chunk.done $(INDEX_HTML_FILE)
work.done: $(WORKDIR)
-$(WORKDIR) $(WORKDIR_XML) $(WORKDIR_HTML) $(WORKDIR_HTML-CHUNK):
+$(WORKDIR) $(WORKDIR_XML) $(WORKDIR_HTML) $(WORKDIR_HTML-CHUNK) $(WORKDIR_IMAGES):
-@mkdir -p $@ > /dev/null 2>&1
+img.done:$(WORKDIR_IMAGES) $(DOCBOOK_NAME)
+ perl .writeat/relocate.pl -d $(SRC_POD_PATH) -p ../img/ -todir $(WORKDIR_IMAGES)/< $(DOCBOOK_NAME) > $(DOCBOOK_NAME).text && \
+ cp $(DOCBOOK_NAME).text $(DOCBOOK_NAME) && touch $@
+
$(POD_NAME): $(WORKDIR_XML)
perl -e 'print "=begin pod\n=Include $(SRC_POD)\n=end pod"' > $@
@@ -32,10 +36,10 @@ $(INDEX_HTML_FILE): $(INDEX_XSLT_FILE)
$(XSLTPROC) -o $@ $(INDEX_XSLT_FILE) $(DOCBOOK_NAME); \
cp -Rp .writeat/data work
-$(HTML_NAME): $(WORKDIR_HTML)
+$(HTML_NAME): $(WORKDIR_HTML) $(DOCBOOK_NAME) img.done
$(XSLTPROC) -o $(HTML_NAME) $(HTML_STYLESHEET) $(DOCBOOK_NAME) && cp $(CSS_FILE) $(WORKDIR_HTML)/docstyles.css
-html-chunk.done: $(WORKDIR_HTML-CHUNK) $(DOCBOOK_NAME)
+html-chunk.done: $(WORKDIR_HTML-CHUNK) $(DOCBOOK_NAME) img.done
$(XSLTPROC) \
--output $(WORKDIR_HTML-CHUNK)/ \
$(CHUNK_STYLESHEET) $(DOCBOOK_NAME) && cp $(CSS_FILE) $(WORKDIR_HTML-CHUNK)/docstyles.css && touch $@

0 comments on commit eeb05b2

Please sign in to comment.