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
|
#!/usr/bin/make -f
# -*- makefile -*-
export DH_VERBOSE=1
include /usr/share/ocaml/ocamlvars.mk
include /usr/share/ocaml/ocamlinit.mk
OCAML_BEST = $(if $(OCAML_OPT_ARCH),native,byte)
override_dh_auto_build:
$(MAKE) $(OCAML_BEST)
override_dh_auto_install:
cp $(shell readlink -f laby) $(CURDIR)/debian/laby/usr/games/laby
cp -r data/* $(CURDIR)/debian/laby/usr/share/laby/
find $(CURDIR)/debian/laby/usr/share/laby/mods/ -type f -name defs -print0 2>/dev/null | xargs -0r chmod a+x
cp data/tiles/ant-e.svg $(CURDIR)/debian/laby/usr/share/icons/hicolor/scalable/apps/laby.svg
cp debian/laby.xpm $(CURDIR)/debian/laby/usr/share/pixmaps/
cp debian/laby.desktop $(CURDIR)/debian/laby/usr/share/applications/
%:
dh $@ --with ocaml
laby.6: laby.xml
# Verification
-xmllint --nonet --noout --postvalid --xinclude $^
# Compilation
xsltproc --output $@ --nonet --xinclude \
/usr/share/xml/docbook/stylesheet/nwalsh/manpages/docbook.xsl \
$^
.PHONY: laby.6
|