1# Copyright 2012 Jeffrey Kegler 2# This file is part of Marpa::XS. Marpa::XS is free software: you can 3# redistribute it and/or modify it under the terms of the GNU Lesser 4# General Public License as published by the Free Software Foundation, 5# either version 3 of the License, or (at your option) any later version. 6# 7# Marpa::XS is distributed in the hope that it will be useful, 8# but WITHOUT ANY WARRANTY; without even the implied warranty of 9# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 10# Lesser General Public License for more details. 11# 12# You should have received a copy of the GNU Lesser 13# General Public License along with Marpa::XS. If not, see 14# http://www.gnu.org/licenses/. 15 16# uncomment the second line if you use pdftex to bypass .dvi files 17#PDFTEX = dvipdfm 18PDFTEX = pdftex 19 20CWEAVE = cweave 21CTANGLE = ctangle 22 23SOURCES = cwebmac.tex marpa.w copyright_page_license.w 24 25.SUFFIXES: .dvi .tex .w .pdf 26 27.w.tex: 28 $(CWEAVE) $* 29 30.tex.dvi: 31 tex $< 32 33.w.dvi: 34 make $*.tex 35 make $*.dvi 36 37.w.c: 38 $(CTANGLE) $* 39 40.w.o: 41 make $*.c 42 make $*.o 43 44.w.pdf: 45 make $*.tex 46 case "$(PDFTEX)" in \ 47 dvipdfm ) tex "\let\pdf+ \input $*"; dvipdfm $* ;; \ 48 pdftex ) pdftex $* ;; \ 49 esac 50 51all: marpa.pdf marpa.c marpa.h 52 53marpa.c marpa.h: copyright_page_license.w marpa.w 54 55marpa.pdf: marpa.tex cwebmac.tex 56 57install: ../dist/marpa.c ../dist/marpa.h 58 59../dist/marpa.c: marpa.c 60 cp $? $@ 61 62../dist/marpa.h: marpa.h 63 cp $? $@ 64 65