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
|
Description: modify install target in Makefile
This patch adjusts the install target to Debian needs.
.
The person named in the Author field signed this changelog entry.
Author: Christian T. Steigies <cts@debian.org>
Last-Update: 2011-09-05
--- a/Makefile
+++ b/Makefile
@@ -13,6 +13,8 @@
# Qt/Embedded Port: February 11, 2002 - February 12, 2002
# Added 'install' target (finally!): May 18, 2002
+installbin = install -g root -o root -m 755
+installdat = install -g root -o root -m 644
DATA_PREFIX=/usr/local/share/gemdropx
SDL_CFLAGS := $(shell sdl-config --cflags)
@@ -39,12 +41,11 @@
all: gemdropx
install:
- cp gemdropx /usr/local/bin/
- chmod 755 /usr/local/bin/gemdropx
- -mkdir -p $(DATA_PREFIX)
- chmod 755 $(DATA_PREFIX)
- cp -R data/* $(DATA_PREFIX)
- chmod -R a+rX $(DATA_PREFIX)/*
+ -mkdir $(DESTDIR)/usr/share/games/gemdropx/images
+ -$(installdat) data/images/* $(DESTDIR)/usr/share/games/gemdropx/images/
+ -mkdir $(DESTDIR)/usr/share/games/gemdropx/sounds
+ -$(installdat) data/sounds/* $(DESTDIR)/usr/share/games/gemdropx/sounds/
+ -$(installbin) gemdropx $(DESTDIR)/usr/games/
nosound:
make MIXER= NOSOUNDFLAG=NOSOUND JOY=$(JOY)
|