From 481c45729042b3cacadaa011d6a2299e043f7a6b Mon Sep 17 00:00:00 2001 From: Kurt Garloff Date: Fri, 5 Oct 2018 12:29:00 +0200 Subject: [PATCH] Adjust Makefile default target to LATEX buildmode. A simple make failed before, as LATEX defaults to pdflatex (which seems reasonable), but the default build target was advi (which requires LATEX=latex). So make this LATEX dependent ... Also add a few comments to the top of the Makefile to explain build requirements. --- Makefile | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 84ac7b6..c7d7787 100755 --- a/Makefile +++ b/Makefile @@ -1,5 +1,11 @@ - -# compile one/all tex-files +#!/usr/bin/make -f +# compile one/all tex-files +# +# Use make LATEX=pdflatex (default) to produce oslic-$VERSION.pdf +# or make LATEX=latex to produce oslic.dvi. +# A pretty standard tex installation will do, the only somewhat non-standard +# requirement are newfile and shadow styles, which on some distros are +# provided by packages like texlive-newfile and texlive-shadow. LATEX=pdflatex @@ -8,9 +14,10 @@ RES_EXTS=ps pdf bak rtf SUB_DIRS=articles bibfiles btexmat extracts snippets templates OSLICDIR=oslic -all: advi ifneq ($(LATEX),pdflatex) +all: advi + advi: clear find . -maxdepth 1 -name "*.tex" -type f ! -name "rel*.tex"|\ while read file; do \ @@ -22,6 +29,10 @@ aps: clear while read file; do \ make "`basename $$file .tex`.ps";\ done + +else +all: apdf + endif apdf: clear