File: make-installation-directories.patch

package info (click to toggle)
jack-tools 20131226-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 712 kB
  • sloc: ansic: 6,183; makefile: 105; lisp: 54
file content (27 lines) | stat: -rw-r--r-- 719 bytes parent folder | download
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
26
27
From: Arnout Engelen <arnouten@bzzt.net>
Date: Sun, 5 Jan 2014 10:51:57 +0200
Subject: make-installation-directories

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)
 
@@ -26,8 +27,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))