summaryrefslogtreecommitdiff
path: root/package/libavl/patches/patch-GNUmakefile
blob: f967ed68ccbbb9d31afc68e188f57c15b7e2728e (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
--- avl-0.3.5.orig/GNUmakefile	2002-11-15 19:57:48.000000000 +0100
+++ avl-0.3.5/GNUmakefile	2011-05-10 13:52:58.000000000 +0200
@@ -15,7 +15,7 @@ CFLAGS ?= -O2 -fomit-frame-pointer -pipe
 #CFLAGS = -g -pg -a -pipe -march=i686 -Wall
 #LDFLAGS = -s
 
-prefix ?= /usr/local
+prefix ?= /usr
 libdir ?= $(prefix)/lib
 includedir ?= $(prefix)/include
 includedir ?= /usr/include
@@ -41,13 +41,13 @@ clean:
 
 install: all
 	$(INSTALL) -d $(DESTDIR)$(libdir)
+	$(INSTALL) -d $(DESTDIR)$(includedir)
 	$(INSTALL) avl.h $(DESTDIR)$(includedir)
-	$(INSTALL) $(LIBRARIES) $(DESTDIR)$(libdir)
-	for i in $(LIBRARIES); do\
+	$(INSTALL) $(LIBRARY) $(DESTDIR)$(libdir)
+	for i in $(LIBRARY); do\
 		$(LN) -sf $$i $(DESTDIR)$(libdir)/$${i%.*};\
 		$(LN) -sf $${i%.*} $(DESTDIR)$(libdir)/$${i%.*.*};\
 	done
-	-$(LDCONFIG)
 
 .PHONY: clean install all
 .PRECIOUS: %.h %.c