summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/thuthesis/Makefile
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2024-03-30 03:03:36 +0000
committerNorbert Preining <norbert@preining.info>2024-03-30 03:03:36 +0000
commit16a9aadc4ae32ef5d7f20d62a3606b05e20f3405 (patch)
tree4cdbef1301bfdfe766434e49385bd2d251a7827e /macros/latex/contrib/thuthesis/Makefile
parent23724df30adf3c6356ee7877833b8096987c643f (diff)
CTAN sync 202403300303
Diffstat (limited to 'macros/latex/contrib/thuthesis/Makefile')
-rw-r--r--macros/latex/contrib/thuthesis/Makefile93
1 files changed, 0 insertions, 93 deletions
diff --git a/macros/latex/contrib/thuthesis/Makefile b/macros/latex/contrib/thuthesis/Makefile
deleted file mode 100644
index 1a7fd81641..0000000000
--- a/macros/latex/contrib/thuthesis/Makefile
+++ /dev/null
@@ -1,93 +0,0 @@
-# Makefile for ThuThesis
-
-PACKAGE = thuthesis
-THESIS = thuthesis-example
-SPINE = spine
-
-SOURCES = $(PACKAGE).ins $(PACKAGE).dtx
-CLSFILE = dtx-style.sty $(PACKAGE).cls
-
-LATEXMK = latexmk
-SHELL := /bin/bash
-NPM ?= npm
-
-# make deletion work on Windows
-ifdef SystemRoot
- RM = del /Q
-else
- RM = rm -f
-endif
-
-.PHONY: all all-dev clean distclean dist thesis viewthesis spine viewspine doc viewdoc cls check save savepdf test FORCE_MAKE
-
-thesis: $(THESIS).pdf
-
-all: thesis spine
-
-all-dev: doc all
-
-cls: $(CLSFILE)
-
-$(CLSFILE): $(SOURCES)
- xetex $(PACKAGE).ins
-
-doc: $(PACKAGE).pdf
-
-spine: $(SPINE).pdf
-
-$(PACKAGE).pdf: cls FORCE_MAKE
- $(LATEXMK) $(PACKAGE).dtx
-
-$(THESIS).pdf: cls FORCE_MAKE
- $(LATEXMK) $(THESIS)
-
-$(SPINE).pdf: cls FORCE_MAKE
- $(LATEXMK) $(SPINE)
-
-viewdoc: doc
- $(LATEXMK) -pv $(PACKAGE).dtx
-
-viewthesis: thesis
- $(LATEXMK) -pv $(THESIS)
-
-viewspine: spine
- $(LATEXMK) -pv $(SPINE)
-
-save:
-ifeq ($(target),)
- bash testfiles/save.sh
-else
- bash testfiles/save.sh $(target)
-endif
-
-test:
-ifeq ($(target),)
- l3build check
-else
- bash testfiles/test.sh $(target)
-endif
-
-clean:
- $(LATEXMK) -c $(PACKAGE).dtx $(THESIS) $(SPINE)
- -@$(RM) -rf *~ main-survey.* main-translation.* _markdown_thuthesis* thuthesis.markdown.*
-
-cleanall: clean
- -@$(RM) $(PACKAGE).pdf $(THESIS).pdf $(SPINE).pdf
-
-distclean: cleanall
- -@$(RM) $(CLSFILE)
- -@$(RM) -r dist
-
-check: FORCE_MAKE
-ifeq ($(version),)
- @echo "Error: version missing: \"make [check|dist] version=X.Y.Z\""; exit 1
-else
- @[[ $(shell grep -E -c '$(version) Tsinghua University Thesis Template|\\def\\version\{$(version)\}' thuthesis.dtx) -eq 3 ]] || (echo "update version with \'l3build tag\" before release"; exit 1)
- @[[ $(shell grep -E -c '"version": "$(version)"' package.json) -eq 1 ]] || (echo "update version with \'l3build tag\" before release"; exit 1)
-endif
-
-dist: check all-dev
- # use l3build for CTAN release (zip with .tds.zip)
- l3build ctan --config build-ctan
- # use gulp for GitHub release (zip with generated file)
- $(NPM) run build -- --version=$(version)