summaryrefslogtreecommitdiff
path: root/support/ctan-o-mat/makefile
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2019-09-02 13:46:59 +0900
committerNorbert Preining <norbert@preining.info>2019-09-02 13:46:59 +0900
commite0c6872cf40896c7be36b11dcc744620f10adf1d (patch)
tree60335e10d2f4354b0674ec22d7b53f0f8abee672 /support/ctan-o-mat/makefile
Initial commit
Diffstat (limited to 'support/ctan-o-mat/makefile')
-rw-r--r--support/ctan-o-mat/makefile54
1 files changed, 54 insertions, 0 deletions
diff --git a/support/ctan-o-mat/makefile b/support/ctan-o-mat/makefile
new file mode 100644
index 0000000000..3c88c7fe55
--- /dev/null
+++ b/support/ctan-o-mat/makefile
@@ -0,0 +1,54 @@
+##-----------------------------------------------------------------------------
+## This file is part of ctan-o-mat.
+## This program is distributed under BSD-like license. See file LICENSE
+##
+## (c) 2016-2017 Gerd Neugebauer
+##
+## Net: gene@gerd-neugebauer.de
+##
+## This program is free software; you can redistribute it and/or modify it
+## under the terms of a 3-clause BSD-like license as stated in the file
+## LICENSE contained in this distribution.
+##
+## You should have received a copy of the LICENSE along with this program; if
+## not, see the repository under https://github.com/ge-ne/ctan-o-mat.
+##
+##-----------------------------------------------------------------------------
+
+FILES = ctan-o-mat \
+ ctan-o-mat.bat \
+ ctan-o-mat.pl \
+ ctan-o-mat.pkg \
+ LICENSE \
+ README.md \
+ makefile \
+ ctan-o-mat.pdf \
+ lib/md2ltx.pl
+
+VERSION = `ctan-o-mat --version`
+LATEX = xelatex
+
+#------------------------------------------------------------------------------
+
+all: validate
+
+clean distclean:
+ $(RM) -f *~ *.out *.log *.aux ctan-o-mat.ltx
+
+pdf doc ctan-o-mat.pdf: README.md makefile lib/md2ltx.pl
+ @perl lib/md2ltx.pl --version "$(VERSION)" README.md > ctan-o-mat.latex
+ @$(LATEX) -interaction=batchmode ctan-o-mat.latex > /dev/null
+ @$(LATEX) -interaction=batchmode ctan-o-mat.latex
+ @$(RM) ctan-o-mat.out ctan-o-mat.aux ctan-o-mat.log ctan-o-mat.latex
+
+val validate: ctan-o-mat.pdf ctan-o-mat.zip
+ @./ctan-o-mat
+
+submit upload: ctan-o-mat.pdf ctan-o-mat.zip
+ @./ctan-o-mat -submit
+
+dist ctan-o-mat.zip: $(FILES)
+ $(RM) ctan-o-mat.zip
+ (cd ..; zip ctan-o-mat/ctan-o-mat.zip $(addprefix ctan-o-mat/,$(FILES)))
+
+#