File: rules

package info (click to toggle)
laby 0.6.4-3
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, sid
  • size: 888 kB
  • sloc: ml: 3,822; sh: 119; xml: 103; pascal: 88; java: 70; perl: 69; ansic: 68; cpp: 59; ruby: 48; python: 40; makefile: 36; lisp: 32
file content (33 lines) | stat: -rwxr-xr-x 970 bytes parent folder | download | duplicates (2)
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