1## -*- makefile -*- 2## $Id: Makefile.am,v 1.17 2007/02/27 05:01:53 dan Exp $ 3## 4## Copyright (c) 2002, 2005, 2006, 2007 Dan McMahill 5## All rights reserved. 6## 7## This code is derived from software written by Dan McMahill 8## 9## Redistribution and use in source and binary forms, with or without 10## modification, are permitted provided that the following conditions 11## are met: 12## 1. Redistributions of source code must retain the above copyright 13## notice, this list of conditions and the following disclaimer. 14## 2. Redistributions in binary form must reproduce the above copyright 15## notice, this list of conditions and the following disclaimer in the 16## documentation and/or other materials provided with the distribution. 17## 3. All advertising materials mentioning features or use of this software 18## must display the following acknowledgement: 19## This product includes software developed by Dan McMahill 20## 4. The name of the author may not be used to endorse or promote products 21## derived from this software without specific prior written permission. 22## 23## THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR 24## IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES 25## OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 26## IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, 27## INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, 28## BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 29## LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED 30## AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, 31## OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 32## OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 33## SUCH DAMAGE. 34## 35 36 37MKSRCS= latex.mk.in latex.subdir.mk.in lgrind.mk.in mpost.mk.in tgif.mk.in xfig.mk.in 38 39BMKFILES= ${MKSRCS:.mk.in=.mk} 40GMKFILES= ${MKSRCS:.mk.in=.gmk} 41PSFILES= dated_draft.ps 42 43pkgdata_DATA= ${BMKFILES} ${GMKFILES} ${PSFILES} 44bin_SCRIPTS= latex-mk ieee-copyout 45 46DISTCLEANFILES= \ 47 configure.lineno \ 48 ${BMKFILES} \ 49 ${GMKFILES} 50 51EXTRA_DIST= ${PSFILES} TODO 52 53SUBDIRS= doc example testsuite 54 55SUFFIXES= .mk.in .mk .gmk 56 57SED_COMMON= -e 's;@pkgdatadir@;$(pkgdatadir);g' \ 58 -e 's;@latexmkconfdir@;${sysconfdir};g' \ 59 -e 's;@latexmkbindir@;${bindir};g' 60 61# make sure the latex-mk script is executible before installation so we 62# can give it a trial run here 63 64all-local: 65 chmod 755 latex-mk 66 chmod 755 ieee-copyout 67 68.mk.in.mk: 69 sed -e 's/^BMK://g' -e '/^GMK:/d' ${SED_COMMON} $< > $@ 70 71.mk.in.gmk: 72 sed -e 's/^GMK://g' -e '/^BMK:/d' ${SED_COMMON} $< > $@ 73 74