summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorKalle Vahlman <kalle.vahlman@movial.com>2011-09-16 09:04:54 +0300
committerKalle Vahlman <kalle.vahlman@movial.com>2011-09-16 09:04:54 +0300
commitfac26f795cf96ec624a3a334ba9b78ea2d86811d (patch)
treefdf9282ea01c29b0198f7b355e0cd3d787fb5673 /Makefile
parented586c55775a214cbc9c746450643271d73efde0 (diff)
Propagate PREFIX to the code to find the default config file
Now that we can install into PREFIX, we need to reflect that in the location of the default config file.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile8
1 files changed, 4 insertions, 4 deletions
diff --git a/Makefile b/Makefile
index b601628..e480c02 100644
--- a/Makefile
+++ b/Makefile
@@ -1,14 +1,16 @@
# Makefile - riff
+DESTDIR :=
+PREFIX := /usr
+
.PHONY: all
all: \
CDAL \
riff
-
.PHONY: riff
riff: CDAL
- cd riff/ && $(MAKE) -f riff.mk
+ cd riff/ && $(MAKE) -f riff.mk PREFIX=$(PREFIX)
.PHONY: CDAL
CDAL:
@@ -49,8 +51,6 @@ debian: clean all
rm -rf debian
rm -rf doc/man/temp
-DESTDIR :=
-PREFIX := /usr
INSTDIR = $(DESTDIR)$(PREFIX)
.PHONY: install