]> git.pld-linux.org Git - packages/battleships.git/blob - battleships-DESTDIR.patch
- DESTDIR support for battleships
[packages/battleships.git] / battleships-DESTDIR.patch
1 --- bs-2.5/Makefile.orig        2003-12-25 11:28:35.000000000 +0100
2 +++ bs-2.5/Makefile     2003-12-25 11:31:07.000000000 +0100
3 @@ -6,6 +6,9 @@
4  TERMLIB = -lncurses
5  CC = gcc
6  
7 +# DESTDIR support
8 +DESTDIR = 
9 +
10  bs: bs.c
11         $(CC) $(CFLAGS) -o bs bs.c $(TERMLIB)
12  
13 @@ -16,8 +19,8 @@
14         rm -f bs bs.6 bs*.tar.gz bs*.rpm *~
15  
16  install: bs.6 uninstall
17 -       cp bs /usr/bin
18 -       cp bs.6 /usr/share/man/man6/bs.6
19 +       cp bs $(DESTDIR)/usr/bin
20 +       cp bs.6 $(DESTDIR)/usr/share/man/man6/bs.6
21  
22  uninstall:
23         rm -f /usr/bin/bs /usr/share/man/man6/bs.6
This page took 0.072511 seconds and 3 git commands to generate.