38 lines
1.2 KiB
Diff
38 lines
1.2 KiB
Diff
![]() |
diff -pruN atanks-3.5-r1.orig/Makefile atanks-3.5-r1/Makefile
|
||
|
--- atanks-3.5-r1.orig/Makefile 2009-04-04 02:54:21.403640365 +0000
|
||
|
+++ atanks-3.5-r1/Makefile 2009-04-04 02:59:23.844514958 +0000
|
||
|
@@ -4,25 +4,26 @@ PREFIX = /usr/
|
||
|
BINPREFIX = $(PREFIX)
|
||
|
|
||
|
BINDIR = ${BINPREFIX}games/bin/
|
||
|
-INSTALLDIR = ${PREFIX}share/games/atanks
|
||
|
+INSTALLDIR = ${PREFIX}share/atanks
|
||
|
|
||
|
export VERSION
|
||
|
export PREFIX
|
||
|
export INSTALLDIR
|
||
|
|
||
|
FILENAME=atanks-${VERSION}
|
||
|
-INSTALL=$(PREFIX)bin/install -c
|
||
|
+INSTALL=$(PREFIX)bin/install
|
||
|
DISTCOMMON=atanks/*.dat atanks/COPYING atanks/README atanks/TODO atanks/Changelog atanks/BUGS atanks/*.txt
|
||
|
-INCOMMON=*.dat COPYING README TODO Changelog *.txt
|
||
|
+INCOMMON=*.dat *.txt
|
||
|
|
||
|
all:
|
||
|
FLAGS=-DLINUX $(MAKE) -C src
|
||
|
|
||
|
install: all
|
||
|
- mkdir -p ${BINDIR}
|
||
|
- $(INSTALL) -g 0 -m 755 -o 0 atanks ${BINDIR}
|
||
|
- mkdir -p ${INSTALLDIR}
|
||
|
- $(INSTALL) -g 0 -m 644 -o 0 $(INCOMMON) ${INSTALLDIR}
|
||
|
+ $(INSTALL) -d $(DESTDIR)/usr/share/atanks
|
||
|
+ $(INSTALL) -m 0644 -t $(DESTDIR)/usr/share/atanks $(INCOMMON)
|
||
|
+ $(INSTALL) -m 0755 -D atanks $(DESTDIR)/usr/bin/atanks
|
||
|
+ $(INSTALL) -m 0644 -D atanks.desktop $(DESTDIR)/usr/share/applications/atanks.desktop
|
||
|
+ $(INSTALL) -m 0644 -D atanks.png $(DESTDIR)/usr/share/pixmaps/atanks.png
|
||
|
|
||
|
user:
|
||
|
INSTALLDIR=./ FLAGS=-DLINUX $(MAKE) -C src
|