| 1 |
# Makefile |
| 2 |
# Run `make main' to compile examples |
| 3 |
# |
| 4 |
# Copyright 2016 Lin DasSarma <[email protected]> |
| 5 |
# |
| 6 |
# This file is part of umbclegislation. |
| 7 |
# |
| 8 |
# umbclegislation is free software: you can redistribute it and/or modify |
| 9 |
# it under the terms of the GNU General Public License as published by |
| 10 |
# the Free Software Foundation, either version 3 of the License, or |
| 11 |
# (at your option) any later version. |
| 12 |
# |
| 13 |
# This program is distributed in the hope that it will be useful, |
| 14 |
# but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 15 |
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 16 |
# GNU General Public License for more details. |
| 17 |
# |
| 18 |
# You should have received a copy of the GNU General Public License |
| 19 |
# along with this program. If not, see <http://www.gnu.org/licenses/>. |
| 20 |
|
| 21 |
LATEX = `which latex` |
| 22 |
PDFLATEX = `which pdflatex` |
| 23 |
|
| 24 |
PDFFILES = legislation.pdf |
| 25 |
DVIFILES = legislation.dvi |
| 26 |
ALLFILES = $(PDFFILES) $(DVIFILES) |
| 27 |
|
| 28 |
main: $(PDFFILES) |
| 29 |
|
| 30 |
pdf: main |
| 31 |
|
| 32 |
all: $(ALLFILES) |
| 33 |
|
| 34 |
%.pdf: %.tex |
| 35 |
$(PDFLATEX) $< |
| 36 |
$(PDFLATEX) $< # Run twice for pagewise lineno |
| 37 |
|
| 38 |
clean: |
| 39 |
git clean -f |