summaryrefslogtreecommitdiff
path: root/devel/sgb/files/patch-Makefile
blob: c47748e8abff677450be159e5265f787869dc1be (plain) (blame)
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
--- Makefile	Mon Dec 27 23:27:24 1999
+++ /home/pfeifer/Makefile	Sat Feb  3 16:08:07 2007
@@ -8,22 +8,22 @@
 #   current directory. (Not recommended for serious users.)
 
 #   Change SGBDIR to the directory where all GraphBase files will go:
-SGBDIR = /usr/local/sgb
+SGBDIR = ${PREFIX}
 
 #   Change DATADIR to the directory where GraphBase data files will go:
-DATADIR = $(SGBDIR)/data
+DATADIR = $(SGBDIR)/lib/sgb
 
 #   Change INCLUDEDIR to the directory where GraphBase header files will go:
 INCLUDEDIR = $(SGBDIR)/include
 
 #   Change LIBDIR to the directory where GraphBase library routines will go:
-LIBDIR = /usr/local/lib
+LIBDIR = $(SGBDIR)/lib
 
 #   Change BINDIR to the directory where installdemos will put demo programs:
-BINDIR = /usr/local/bin
+BINDIR = $(SGBDIR)/bin
 
 #   Change CWEBINPUTS to the directory where CWEB include files will go:
-CWEBINPUTS = /usr/local/lib/cweb
+CWEBINPUTS = $(SGBDIR)/lib/cweb
 
 #   SHORTCUT: Uncomment these lines, for single-directory installation:
 #DATADIR = .
@@ -130,9 +130,9 @@
 install: lib
 	if test ! -r certified; then echo "Please run 'make tests' first!"; fi
 	test -r certified
-	make installdata
 	- mkdir $(LIBDIR)
 	- cp libgb.a $(LIBDIR)
+	make installdata
 	- mkdir $(CWEBINPUTS)
 	- cp -p boilerplate.w gb_types.w $(CWEBINPUTS)
 	- mkdir $(INCLUDEDIR)