File: Makefile.diff

package info (click to toggle)
greed 4.3-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 184 kB
  • sloc: ansic: 1,114; makefile: 76; sh: 52
file content (37 lines) | stat: -rw-r--r-- 1,149 bytes parent folder | download | duplicates (4)
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
28
29
30
31
32
33
34
35
36
37
Description: This patch changes the place
 where the program saves the high scores
 file. See Debian Policy 11.11. Also, adds
 changes in order to respect DESTDIR.
Forwarded: Yes
Author: Pierre Machard <pmachard@debian.org>, Josué Abarca <jmaslibre@debian.org.gt>
Bug-Debian: http://bugs.debian.org/437088
Last-Update: 2014-10-06
Index: greed/Makefile
===================================================================
--- greed.orig/Makefile
+++ greed/Makefile
@@ -2,9 +2,9 @@
 
 VERS=3.10
 
-SFILE=/usr/games/lib/greed.hs
+SFILE=$(DESTDIR)/var/games/greed/greed.hs
 # Location of game executable
-BIN=/usr/games
+BIN=$(DESTDIR)/usr/games
 
 greed: greed.c
 	$(CC) $(CPPFLAGS) $(CFLAGS) $(LDFLAGS) -DSCOREFILE=\"$(SFILE)\" -DRELEASE=\"$(VERS)\" -o greed greed.c -O3 -lcurses
@@ -17,10 +17,10 @@ greed.html: greed.xml
 
 install: greed.6 uninstall
 	cp greed $(BIN)
-	cp greed.6 /usr/share/man/man6/greed.6
+	cp greed.6 $(DESTDIR)/usr/share/man/man6/greed.6
 
 uninstall:
-	rm -f $(BIN)/install /usr/share/man/man6/greed.6
+	rm -f $(BIN)/greed $(DESTDIR)/usr/share/man/man6/greed.6
 
 clean:
 	rm -f *~ *.o greed greed-*.tar.gz  greed*.rpm *.html