Skip to content

Commit

Permalink
Only zip up assets if there are any.
Browse files Browse the repository at this point in the history
  • Loading branch information
Avdi Grimm committed Jul 16, 2012
1 parent 91465a2 commit fdab21e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/stages/package/html.mk
Expand Up @@ -9,6 +9,8 @@ outputs = $(OP_BOOK_NAME).html.zip
%.html.zip: %.html $(LOCAL_ASSET_TARGETS) $(COMPOSITE_STYLESHEET)
$(ZIP) $(ZIPFLAGS) $@ -j $<
$(ZIP) $(ZIPFLAGS) $@ -j $(COMPOSITE_STYLESHEET)
$(ZIP) $(ZIPFLAGS) $@ $(ASSET_TARGETS)
if [ -n "$(ASSET_TARGETS)" ]; then \
$(ZIP) $(ZIPFLAGS) $@ $(ASSET_TARGETS); \
fi
$(ADD_FONTS_TO_ARCHIVE)

0 comments on commit fdab21e

Please sign in to comment.