File: rules

package info (click to toggle)
irrlicht 1.8.5%2Bds2-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 24,416 kB
  • sloc: cpp: 166,238; ansic: 3,892; xml: 1,779; makefile: 854; sh: 13; sed: 6
file content (46 lines) | stat: -rwxr-xr-x 1,169 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
34
35
36
37
38
39
40
41
42
43
44
45
46
#!/usr/bin/make -f

export DEB_BUILD_MAINT_OPTIONS = hardening=+all

DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH)

%:
	dh $@ --sourcedirectory=source/Irrlicht

override_dh_clean:
	# clean documentation
	rm -rf doc/html doc/tut.txt

	# clean everything else
	$(MAKE) -C source/Irrlicht clean

	dh_clean

override_dh_auto_build:
	mkdir -p lib/Linux

	# build irrlicht shared and static lib
	NDEBUG="true" CFLAGS="$(CFLAGS)" LDFLAGS="$(LDFLAGS)" \
	CXXFLAGS="$(CXXFLAGS)" dh_auto_build -- sharedlib staticlib

	# build documentation
	# based off of scripts/doc/irrlicht/makedocumentation.sh
	set -e ; rm -f doc/tut.txt && \
	for i in examples/[0-9]*/main.cpp; do \
	  sed -f debian/upstream_scripts/tutorials.sed "$${i}" >> doc/tut.txt; \
	done && \
	doxygen debian/upstream_scripts/doxygen.cfg

	# strange...
	find . -type d -empty -delete

override_dh_installdirs:
	dh_installdirs -plibirrlicht-dev -Pdebian/tmp usr/include/irrlicht \
	usr/lib/$(DEB_HOST_MULTIARCH)

override_dh_auto_install:
	dh_auto_install -- \
	INSTALL_DIR=$(CURDIR)/debian/tmp/usr/lib/$(DEB_HOST_MULTIARCH)

override_dh_installchangelogs:
	dh_installchangelogs changes.txt