File: install-hook.diff

package info (click to toggle)
maelstrom 3.0.7-5
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 4,952 kB
  • sloc: cpp: 10,947; sh: 3,406; ansic: 2,781; makefile: 175
file content (18 lines) | stat: -rw-r--r-- 674 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
Author: Pino Toscano <pino@debian.org>
Description: rename the custom 'install' target as 'install-data-hook'
 automake creates its own 'install' target in the generated Makefile, and the
 custom target shadows it; instead, install the extra bits additionally,
 within a 'install-data-hook' target.
Last-Update: 2021-12-28

--- a/Makefile.am
+++ b/Makefile.am
@@ -63,7 +63,7 @@ EXTRA_DIST =			\
 DIST_SUBDIRS = $(SUBDIRS) Images Docs
 
 # Special install rule for the game
-install:
+install-data-hook:
 	sh mkinstalldirs $(DESTDIR)@GAME_INSTALLDIR@
 	install -m 755 Maelstrom $(DESTDIR)@GAME_INSTALLDIR@/Maelstrom
 	make install_gamedata target=$(DESTDIR)@GAME_INSTALLDIR@