blob: 7a2c9882eb007fc0a2ee4c291b6bf3422aaebe8f (
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
|
--- ./Makefile.orig 2013-09-10 17:47:08.000000000 +0200
+++ ./Makefile 2013-09-28 15:21:45.000000000 +0200
@@ -1,8 +1,9 @@
.PHONY: all clean install
PREFIX?=.
-ETCDIR?=$(PREFIX)/etc/dcf77pi
-CFLAGS+=-Wall -DETCDIR=\"$(ETCDIR)\"
+FULLPREFIX?=$(PREFIX)
+ETCDIR?=etc/dcf77pi
+CFLAGS+=-Wall -DETCDIR=\"$(PREFIX)/$(ETCDIR)\"
all: dcf77pi readpin
@@ -26,6 +27,6 @@
rm readpin readpin.o
install:
- install dcf77pi readpin $(PREFIX)/bin
- mkdir -p $(ETCDIR)
- install etc/dcf77pi/hardware.txt $(ETCDIR)/hardware.txt.sample
+ install dcf77pi readpin $(FULLPREFIX)/bin
+ mkdir -p $(FULLPREFIX)/$(ETCDIR)
+ install etc/dcf77pi/hardware.txt $(FULLPREFIX)/$(ETCDIR)/hardware.txt.sample
|