aboutsummaryrefslogtreecommitdiffstats
path: root/comms/bluegps/files/patch-Makefile
blob: 8e5d3c8f5d1a66548acd038b8e1fbb5082b87318 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
--- ./Makefile.orig	2006-06-04 04:21:10.000000000 +0200
+++ ./Makefile	2014-02-16 13:19:18.792524225 +0100
@@ -1,6 +1,5 @@
 VERSION=2.0
 PROJECT=bluegps
-CC=gcc
 
 all: $(PROJECT)
 
@@ -13,6 +12,9 @@
 dist:
 	cd ..; tar cvfz $(PROJECT)-linux-$(VERSION).tgz $(PROJECT)-linux/Makefile $(PROJECT)-linux/$(PROJECT).c $(PROJECT)-linux/rbt3000.h $(PROJECT)-linux/$(PROJECT).1
 
-install: $(PROJECT) $(PROJECT).1
-	install $(PROJECT) /usr/local/bin
-	install $(PROJECT).1 /usr/local/man/man1
+strip:
+	strip $(PROJECT)
+
+install: $(PROJECT) $(PROJECT).1 strip
+	install $(PROJECT) $(DESTDIR)$(PREFIX)/bin
+	install $(PROJECT).1 $(DESTDIR)$(PREFIX)/share/man/man1