archives.inc.mk 643 B

123456789101112131415161718192021222324252627282930
  1. # Generate Archives for distribution
  2. # ==================================
  3. archives: dist/pandoc-scholar.zip dist/pandoc-scholar.tar.gz
  4. dist/pandoc-scholar: \
  5. csl \
  6. $(LUA_FILTERS_PATH) \
  7. scholar-filters \
  8. LICENSE README.md \
  9. Makefile pandoc-options.inc.mk \
  10. example templates writers
  11. rm -rf $@
  12. mkdir -p $@
  13. cp -av $^ $@
  14. dist/pandoc-scholar.tar.gz: dist/pandoc-scholar
  15. rm -f $@
  16. tar zvcf $@ -C $(dir $<) $(notdir $<)
  17. dist/pandoc-scholar.zip: dist/pandoc-scholar
  18. rm -f $@
  19. (cd $(dir $<) && zip -r $(notdir $@) $(notdir $<))
  20. clean-archives:
  21. rm -rf dist
  22. dist-clean: clean-archives
  23. .PHONY: archives clean-archives dist-clean