Permalink
Find file
Fetching contributors…
Cannot retrieve contributors at this time
65 lines (50 sloc) 1.48 KB
export PATH=/usr/texbin:$PATH
TEXMFHOME := `kpsewhich -var-value TEXMFHOME`
SMCM_TEX := $(TEXMFHOME)/tex/latex/smcm-tex/
PACKAGES := psyc cosc math biol
INSTALL := /usr/bin/install -m 644
default:
$(info Run 'make install' to install my styles.)
$(info Run 'sudo make tl-pgf' to update your TikZ to 3.0 (TeXLive, MacTeX).)
$(info Run ' make mt-pgf' as an administrator; same as tl-, but for MiKTeX.)
$(info Run 'make clean' to clean up.)
all:
@$(MAKE) install
@$(MAKE) util
@$(MAKE) cosc
@$(MAKE) math
@$(MAKE) psyc
@$(MAKE) biol
install:
$(INSTALL) -m 755 -d $(SMCM_TEX)
cosc:
$(INSTALL) smcm-tex/cosc/smcm-cosc-smp.cls $(SMCM_TEX)
$(INSTALL) smcm-tex/cosc/smcm-cosc-listings.sty $(SMCM_TEX)
$(INSTALL) smcm-tex/cosc/smcm-cosc-graphs.sty $(SMCM_TEX)
$(INSTALL) smcm-tex/cosc/smcm-cosc-tikz-graphs.sty $(SMCM_TEX)
$(INSTALL) smcm-tex/cosc/smcm-cosc-algorithms.sty $(SMCM_TEX)
math:
$(INSTALL) smcm-tex/math/smcm-math.sty $(SMCM_TEX)
psyc:
$(INSTALL) smcm-tex/psyc/smcm-psyc-paper.cls $(SMCM_TEX)
biol:
$(INSTALL) smcm-tex/biol/smcm-biol.sty $(SMCM_TEX)
util:
$(INSTALL) smcm-tex/util/exam-extensions.sty $(SMCM_TEX)
$(INSTALL) smcm-tex/util/smcm-common.sty $(SMCM_TEX)
tl-pgf:
tlmgr update pgf
mt-pgf:
mpm update=pgf
clean:
$(info Nothing to do.)
docs:
$(info Making introductions...)
for folder in psyc biol; do \
[ ! -e $$folder/introduction.tex ] && continue;
arara $$folder/introduction
done
$(info Done.)
upd-tl:
tlmgr update --self
tlmgr update --all