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 38 39 40 41 42 43 44 45 46 47 48 49
|
#!/usr/bin/make -f
# -*- makefile -*-
%:
dh $@
INSTALL_ROOT=debian/openttd-openmsx
DATA_DIR=usr/share/games/openttd/baseset/openmsx
DOC_DIR=/usr/share/doc/openttd-openmsx
OPTIONS=
OPTIONS += "INSTALL_DIR=$(INSTALL_ROOT)/$(DATA_DIR)"
# Prevent the Makefile from autodetecting unix2dos, it's really not
# needed
OPTIONS += "UNIX2DOS="
# Enable verbosity (default is _V=@ to suppress commands)
OPTIONS += "_V="
override_dh_auto_test:
# Check md5sums of files. This isn't really useful (mostly meant
# for use with opengfx), but we'll have to override dh_auto_test
# anyway (since make test generates debug output), so we might
# as well call make check.
make check $(OPTIONS)
override_dh_auto_build:
make $(OPTIONS)
override_dh_auto_install:
make install $(OPTIONS)
# In the datadir, replace the readme and changelog with symlinks
# to /usr/share/doc to save space.
dh_link $(DOC_DIR)/readme.txt $(DATA_DIR)/readme.txt
dh_link $(DOC_DIR)/changelog $(DATA_DIR)/changelog.txt
# Verify that the license.txt that was installed is equal to the
# GPL-2 common license and then just link to that one instead
diff -q /usr/share/common-licenses/GPL-2 $(INSTALL_ROOT)/$(DATA_DIR)/license.txt
dh_link usr/share/common-licenses/GPL-2 $(DATA_DIR)/license.txt
override_dh_installdocs:
dh_installdocs docs/readme.txt
override_dh_installchangelogs:
dh_installchangelogs docs/changelog.txt
override_dh_auto_clean:
# Don't use dh_auto_clean. It thinks any target is valid because
# it generates output (dependency analysis) before erroring out.
make distclean
|