summaryrefslogtreecommitdiff
blob: 55a9c561ee6df7ea60ccf9b42a24e3ac9a4bb4f1 (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
--- libinklevel/Makefile.orig	2006-10-04 19:18:54.000000000 +0200
+++ libinklevel/Makefile	2006-10-04 19:20:18.000000000 +0200
@@ -1,4 +1,5 @@
 DESTDIR = /usr/local/
+LIBDIR = $(DESTDIR)/lib
 CC = gcc
 CFLAGS = -Wall -O2 -fPIC -DPIC -I.
 
@@ -7,12 +8,12 @@
 install: all
 	mkdir -p $(DESTDIR)/include
 	install -m 644 -o root -g root inklevel.h $(DESTDIR)/include/inklevel.h
-	mkdir -p $(DESTDIR)/lib
+	mkdir -p $(LIBDIR) 
 	install -m 755 -o root -g root libinklevel.so.2.0.6.5 \
-	$(DESTDIR)/lib/libinklevel.so.2.0.6.5
-	cd $(DESTDIR)/lib && rm -fr libinklevel.so && \
+	$(LIBDIR)/libinklevel.so.2.0.6.5
+	cd $(LIBDIR) && rm -fr libinklevel.so && \
 	ln -s libinklevel.so.2.0.6.5 libinklevel.so
-	ldconfig $(DESTDIR)/lib
+	ldconfig $(LIBDIR)
 
 clean:
 	rm -fr *.o *.so.2.0.6.5 *~