From dc6adfd5b65c304154131f3f4fe08aba837677f7 Mon Sep 17 00:00:00 2001 From: Albert Krewinkel Date: Thu, 18 Apr 2024 21:20:41 +0200 Subject: [PATCH] Fix `make` targets for preprint and cff Fixes: #48 --- Makefile | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 5f4eb58..e1245df 100644 --- a/Makefile +++ b/Makefile @@ -16,14 +16,16 @@ TARGET_FOLDER = publishing-artifacts ARTICLE_INFO_FILE = $(OPENJOURNALS_PATH)/default-article-info.yaml .PHONY: all -all: pdf html jats crossref jats +all: cff pdf html jats crossref native preprint -.PHONY: pdf html jats crossref native +.PHONY: cff pdf html jats crossref native preprint +cff: $(TARGET_FOLDER)/paper.cff pdf: $(TARGET_FOLDER)/paper.pdf html: $(TARGET_FOLDER)/paper.html jats: $(TARGET_FOLDER)/paper.jats native: $(TARGET_FOLDER)/paper.native crossref: $(TARGET_FOLDER)/paper.crossref +preprint: $(TARGET_FOLDER)/paper.preprint $(TARGET_FOLDER)/paper.%: $(ARTICLE) \ $(INARA_DATA_PATH)/defaults/%.yaml \ @@ -59,6 +61,10 @@ $(OPENJOURNALS_PATH)/footer.csl: $(OPENJOURNALS_PATH)/apa.csl .PHONY: clean clean: + rm -rf $(TARGET_FOLDER)/paper.cff + rm -rf $(TARGET_FOLDER)/paper.crossref rm -rf $(TARGET_FOLDER)/paper.html rm -rf $(TARGET_FOLDER)/paper.jats + rm -rf $(TARGET_FOLDER)/paper.native rm -rf $(TARGET_FOLDER)/paper.pdf + rm -rf $(TARGET_FOLDER)/paper.preprint