summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorbrian m. carlson <sandals@crustytoothpaste.net>2010-09-28 17:34:34 +0000
committerbrian m. carlson <sandals@crustytoothpaste.net>2010-09-28 17:34:34 +0000
commitb1b156cce12d0bf457279b0fe99341e1e1da3ce0 (patch)
treeef34f2ce81773e7fce0898516be52caf32085014 /Makefile
parent87f191f4f7bdc5d0f4354ad004eae7a7e4fa7eb3 (diff)
Makefile: make it work under GNU or NetBSD make.
For better or for worse, I still type "pmake" on occasion, so make the Makefile work correctly for both GNU make and NetBSD make (Debian's pmake). It should also work under FreeBSD's make as well, but that has not been tested. Signed-off-by: brian m. carlson <sandals@crustytoothpaste.net>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile10
1 files changed, 6 insertions, 4 deletions
diff --git a/Makefile b/Makefile
index 76a3243..e9211da 100644
--- a/Makefile
+++ b/Makefile
@@ -8,20 +8,22 @@ PSTP := $(SHEETDIR)/pstp.xsl
PROFARGS := --stringparam profile.condition 'default;pdf'
STYLEARGS := --param fop1.extensions 1
+CUR = $^$>
+
.SUFFIXES: .fo .pdf .dbx
all:
@echo "Nothing happens."
.fo.pdf:
- $(DOC_CVT) -e -t fop-beta -i $^ -o $@
+ $(DOC_CVT) -e -t fop-beta -i $(CUR) -o $@
.dbx.fo:
- (if [ -n "$(findstring /,$^)" ]; \
+ (str="$(CUR)"; if [ -z "$${str##*/*}" ]; \
then \
- cat $^; \
+ cat $(CUR); \
else \
- xsltproc --xinclude $(PROFARGS) $(PROFILE) $^; \
+ xsltproc --xinclude $(PROFARGS) $(PROFILE) $(CUR); \
fi) | xsltproc --xinclude $(STYLEARGS) $(STYLE) - | xsltproc -o $@ $(PSTP) -
clean: