Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adjust Makefile default target to LATEX buildmode. #15

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 14 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
@@ -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

Expand All @@ -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 \
Expand All @@ -22,6 +29,10 @@ aps: clear
while read file; do \
make "`basename $$file .tex`.ps";\
done

else
all: apdf

endif

apdf: clear
Expand Down