Package: jack-tools / 20131226-2

make-installation-directories.patch Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
Create installation directories if needed
--- a/Makefile
+++ b/Makefile
@@ -3,6 +3,7 @@ bin=jack-dl jack-osc jack-play jack-plumbing jack-record jack-scope jack-transpo
 
 CFLAGS=-Wall -D_POSIX_C_SOURCE=200112 -std=c99 -O3 -g
 LDLIBS=c-common/lib-c-common.a -ljack -lpthread -lm
+INSTALL=install
 
 all: $(bin)
 
@@ -25,8 +26,9 @@ clean:
 	rm -f $(bin) *.o
 
 install:
-	cp $(bin) $(prefix)/bin
-	cp jack-dl.h $(prefix)/include
+	$(INSTALL) -d $(prefix)/bin $(prefix)/include
+	$(INSTALL) $(bin) $(prefix)/bin
+	$(INSTALL) jack-dl.h $(prefix)/include
 
 uninstall:
 	(cd $(prefix)/bin ; rm -f $(bin))