Skip to content

Commit

Permalink
Small Makefile tweak: Copy Markdown file, if HTML could not be genera…
Browse files Browse the repository at this point in the history
…ted.
  • Loading branch information
lordmulder committed Apr 14, 2017
1 parent e3481e7 commit 0da4fd4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,7 @@ CreateDocuments:
wget -N -P $(JARS_PATH) https://repo1.maven.org/maven2/com/yahoo/platform/yui/yuicompressor/2.4.8/yuicompressor-2.4.8.jar
wget -N -P $(JARS_PATH) https://repo1.maven.org/maven2/com/googlecode/htmlcompressor/htmlcompressor/1.5.2/htmlcompressor-1.5.2.jar
mkdir -p $(TARGET_PATH)/img/dyauno
$(PANDOC) --from $(PANDOC_FLAGS) --to html5 --toc -N --standalone -H ./img/dyauno/Style.inc ./README.md | java -jar $(JARS_PATH)/htmlcompressor-1.5.2.jar --compress-css -o $(TARGET_PATH)/README.html || cp ./README.md $(TARGET_PATH)/README.md
$(PANDOC) --from $(PANDOC_FLAGS) --to html5 --toc -N --standalone -H ./img/dyauno/Style.inc ./README.md | java -jar $(JARS_PATH)/htmlcompressor-1.5.2.jar --compress-css -o $(TARGET_PATH)/README.html
test -s $(TARGET_PATH)/README.html || (rm -f $(TARGET_PATH)/README.html; cp ./README.md $(TARGET_PATH)/README.md)
cp ./img/dyauno/*.png $(TARGET_PATH)/img/dyauno

0 comments on commit 0da4fd4

Please sign in to comment.