summaryrefslogtreecommitdiff
path: root/print/ja-vflib-lib/patches/patch-aa
blob: 1b9d5174dc84657d1936012f0b82343c1efba554 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
$NetBSD: patch-aa,v 1.1.1.1 2002/05/31 12:59:53 seb Exp $

--- Makefile.in.orig	Mon Sep 14 01:25:04 1998
+++ Makefile.in	Mon May  1 04:37:47 2000
@@ -10,17 +10,22 @@
 
 LIBTOOL=./libtool
 
-all:
-	(cd src; $(MAKE) $@)
+all: build-src build-tools
+install: install-src install-tools
+
+build-src:
+	(cd src; $(MAKE) all)
+
+build-tools:
 	if test -d /usr/openwin ; then \
 		(cd tools; \
 		 OPENWINHOME=/usr/openwin; export OPENWINHOME; \
-	     	 xmkmf; $(MAKE) $@) \
+	     	 xmkmf; $(MAKE) all) \
 	else \
-		(cd tools; xmkmf -a; $(MAKE) $@) \
+		(cd tools; xmkmf -a; $(MAKE) all) \
 	fi
 
-install: 
+install-src: 
 	@if [ ! -d $(bindir) ] ; then \
 	    ./recmkdir $(bindir); fi
 	@if [ ! -d $(libdir) ] ; then \
@@ -29,10 +34,12 @@
 	    ./recmkdir $(includedir); fi
 	@if [ ! -d $(runtimedir) ] ; then \
 	    ./recmkdir $(runtimedir); fi
-	(cd src;   $(MAKE) $@)
-	(cd tools; $(MAKE) $@)
+	(cd src;   $(MAKE) install)
 	$(CP) vfontcap* $(runtimedir)
 	$(CP) doc/*.dvi doc/*.ps doc/QA* $(runtimedir)
+
+install-tools:
+	(cd tools; $(MAKE) install)
 
 uninstall:
 	-(cd src;   $(MAKE) $@)