File: 03_makefile.diff

package info (click to toggle)
empty-expect 0.6.19b-1
  • links: PTS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 280 kB
  • ctags: 131
  • sloc: ansic: 745; sh: 197; makefile: 37
file content (25 lines) | stat: -rw-r--r-- 692 bytes parent folder | download | duplicates (3)
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
--- ../orig/empty-expect-0.6.18b/Makefile	2009-04-23 11:50:44.000000000 +0000
+++ ./Makefile	2011-08-28 09:29:23.000000000 +0000
@@ -14,6 +14,7 @@
 LIBS =	-lutil
 
 PREFIX = /usr/local
+PREFIX = $(DESTDIR)/usr
 
 all:
 	${CC} ${CFLAGS} -Wall ${LIBS} -o empty empty.c
@@ -40,6 +41,8 @@
 	gcc ${CFLAGS} -Wall -o empty empty.c
 
 install:
+
+installnot:
 	[ -f `which strip` ] && strip empty
 	[ -d ${PREFIX}/bin ] && cp empty ${PREFIX}/bin || mkdir -p ${PREFIX}/bin && cp empty ${PREFIX}/bin
 	[ -d ${PREFIX}/man/man1 ] && cp empty.1 ${PREFIX}/man/man1 || mkdir -p ${PREFIX}/man/man1 && cp empty.1 ${PREFIX}/man/man1
@@ -49,4 +52,4 @@
 uninstall:	deinstall
 
 clean:
-	rm empty 
+	rm -f empty