aboutsummaryrefslogtreecommitdiffstats
path: root/unmaintained/jhead/makefile-destdir.patch
blob: d9c5b1a0b952ca0bf9ec1d99370f62bb0c66d544 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
--- jhead-2.93/makefile
+++ jhead-2.93/makefile.new
@@ -4,6 +4,7 @@
 OBJ=.
 SRC=.
 CFLAGS= -O3 -Wall
+prefix= /usr
 
 all: jhead
 
@@ -20,4 +21,5 @@
 	rm -f $(objs) jhead
 
 install:
-	cp jhead ${DESTDIR}/usr/local/bin/
+	install -Dp -m 0755 jhead $(DESTDIR)$(prefix)/bin/jhead
+	install -m644 -D jhead.1 $(DESTDIR)$(prefix)/share/man/man1/jhead.1