LaTeX-proposal/Makefile
2017-12-04 10:00:14 +01:00

45 lines
1.5 KiB
Makefile

########################################################################
# This Makefile automates maintenance and CTAN submission of complex
# LaTeX packages.
########################################################################
MAKEDIRS = $(DTXDIRS) examples
TDSCOLL ?= $(shell basename $$PWD)
DISTDIRS = $(DTXDIRS)
TDS.README = README.ctan
# targets for repository maintenance
all clean distclean:
@for d in $(MAKEDIRS); do (cd $$d && $(MAKE) -$(MAKEFLAGS) $@) done
package doc:
@for d in $(DTXDIRS); do (cd $$d && $(MAKE) -$(MAKEFLAGS) $@) done
########################################################################
# CTAN submission
########################################################################
#
# For CTAN submission just run "make ctan".
# This creates the file proposal.ctan.zip which can then be submitted to
# http://ctan.org/upload directly.
#
# Directories that should be copied into top-level directories
# - source (the *.dtx and *.ins files),
# - doc (package/class documentation), and
# - tex (*.sty and *.cls, etc that LaTeX reads)
# of the CTAN and TDS submissions
SRCDIRS = bin lib
DOCDIRS = #eu/examples/strep dfg/examples/proposal
DTXDIRS = base dfg eu
# targets for CTAN.
filedate checksum enablechecksum disablechecksum:
@for d in $(DTXDIRS); do (cd $$d && $(MAKE) -$(MAKEFLAGS) $@) done
GITURI = git@github.com:KWARC/LaTeX-proposal.git
TDS.src =
TDS.readme = README.ctan
include lib/Makefile.ctan
echo:
@echo $(MAKEDIRS)