This GitLab instance reached the end of its service life. It won't be possible to create new users or projects.

Please read the deprecation notice for more information concerning the deprecation timeline

Visit migration.git.tu-berlin.de (internal network only) to import your old projects to the new GitLab platform 📥

Commit 72b3d296 by Kaufi

Add make file to Sozialfonds-Satzung for testing

The Sozialfonds-Satzung needs a review, as the nested lists and the
subsequent changes in that lists are quite error prone. Also the usual
links to other norms are still missing. So there is only a make file and
no PDF.
parent c43af173
#####
# author: Andreas Hechenberger
# date: 14X0414
# Requirement: pdflatex bibtex makeindex perl egrep epstopdf evince
# Original Makefile: http://www.cs.berkeley.edu/~jaein/notes/Makefile.pdflatex
#####
# Makefile for LaTeX files
# define variables to compile latex
LATEX = pdflatex
BIBTEX = bibtex
MAKEINDEX = makeindex
# define errror outputs
RERUN = "(There were undefined references|Rerun to get (cross-references|the bars) right)"
RERUNBIB = "No file.*\.bbl|Citation.*undefined"
MAKEIDX = "^[^%]*\\makeindex"
MPRINT = "^[^%]*print"
USETHUMBS = "^[^%]*thumbpdf"
# search for main documents to compile
SRC := $(shell egrep -l '^[^%]*\\begin\{document\}' *.tex)
# search for bibfiles
BIBFILE := $(shell perl -ne '($$_)=/^[^%]*\\bibliography\{(.*?)\}/;@_=split /,/;foreach $$b (@_) {print "$$b.bib "}' $(SRC))
# search for includegraphics and there pictures and add pdf if necessary
PDFPICS := $(shell perl -ne '@foo=/^[^%]*\\(includegraphics)(\[.*?\])?\{(.*?)\}/g;if (defined($$foo[2])) { if ($$foo[2] =~ /.pdf$$/) { print "$$foo[2] "; } else { print "$$foo[2].pdf "; }}' *.tex)
DEP = *.tex
# define target (replace .tex with .pdf from the sourcefile)
TRG = $(SRC:%.tex=%.pdf)
# make backupfile if the toc (tableOfContent) file exists
COPY = if test -r $(<:%.tex=%.toc); then cp $(<:%.tex=%.toc) $(<:%.tex=%.toc.bak); fi
RM = rm -f
OUTDATED = echo "EPS-file is out-of-date!" && false
# default start
all : $(TRG) cleanTMP
# generate pdf without deleting the temporary files
debug : $(TRG)
# define rules and return true if the process should run again
define run-latex
$(COPY);$(LATEX) $<
egrep -q $(MAKEIDX) $< && ($(MAKEINDEX) $(<:%.tex=%);$(COPY);$(LATEX) $<) ; true
egrep -c $(RERUNBIB) $(<:%.tex=%.log) && ($(BIBTEX) $(<:%.tex=%);$(COPY);$(LATEX) $<) ; true
egrep -q $(RERUN) $(<:%.tex=%.log) && ($(COPY);$(LATEX) $<) ; true
egrep -q $(RERUN) $(<:%.tex=%.log) && ($(COPY);$(LATEX) $<) ; true
if cmp -s $(<:%.tex=%.toc) $(<:%.tex=%.toc.bak); then true ;else $(LATEX) $< ; fi
$(RM) $(<:%.tex=%.toc.bak)
# Display relevant warnings
egrep -i "(Reference|Citation).*undefined" $(<:%.tex=%.log) ; true
endef
# run again and again and again if necessary
$(TRG) : %.pdf : %.tex $(DEP) $(PDFPICS) $(BIBFILE)
@$(run-latex)
# delete all temporary files
clean :
-rm -f $(TRG) $(PSF) $(PDF) $(TRG:%.pdf=%.aux) $(TRG:%.pdf=%.bbl) $(TRG:%.pdf=%.blg) $(TRG:%.pdf=%.log) $(TRG:%.pdf=%.out) $(TRG:%.pdf=%.toc) $(DEP:%.tex=%.aux)
# delete all temporary except the PDF
cleanTMP :
-rm -f $(PSF) $(TRG:%.pdf=%.aux) $(TRG:%.pdf=%.bbl) $(TRG:%.pdf=%.blg) $(TRG:%.pdf=%.log) $(TRG:%.pdf=%.out) $(TRG:%.pdf=%.toc) $(DEP:%.tex=%.aux)
.PHONY : all show clean ps pdf showps
view: $(TRG) cleanTMP
evince $(TRG)
osx: $(TRG) cleanTMP
open $(TRG)
######################################################################
# Define rules for PDF source files.
%.pdf: %.eps
epstopdf $< > $(<:%.eps=%.pdf)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment