File: rules

package info (click to toggle)
angelscript 2.38.0%2Bds-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 5,736 kB
  • sloc: cpp: 77,114; asm: 2,017; makefile: 666; xml: 253; javascript: 42; ansic: 26; python: 22; sh: 7
file content (41 lines) | stat: -rwxr-xr-x 1,129 bytes parent folder | download
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
#!/usr/bin/make -f
#export DH_VERBOSE = 1


export DEB_BUILD_MAINT_OPTIONS = hardening=+all

export DEB_CXXFLAGS_MAINT_APPEND  = -Wall -pedantic
export DEB_LDFLAGS_MAINT_APPEND =

include /usr/share/dpkg/pkg-info.mk

export MULTIARCH := $(DEB_HOST_MULTIARCH)
export VERSION := $(shell echo '$(DEB_VERSION_UPSTREAM)' | sed -e 's/\+.*//')

# buggy archs
ifneq (,$(filter $(DEB_HOST_ARCH), armhf mips64el sparc64 x32))
  DEB_CXXFLAGS_MAINT_APPEND += -DAS_MAX_PORTABILITY
endif


%:
	dh $@

execute_after_dh_auto_clean:
	-+$(MAKE) -C samples clean
	$(RM) debian/doxygen/output Makefile samples/Makefile angelscript/lib/libangelscript-addon.a angelscript/lib/libangelscript-addon.so.*

override_dh_auto_configure-arch:
	ln -sf debian/Makefile
	cd samples && ln -sf ../debian/Makefile.samples Makefile

override_dh_auto_test-arch:
	+CPPFLAGS="$(CPPFLAGS) -I../angelscript/include" LDFLAGS="$(LDFLAGS) -Wl,-rpath,../../../angelscript/lib -L../angelscript/lib" $(MAKE) -C samples test

override_dh_auto_build-indep: debian/doxygen/output

debian/doxygen/output:
	cd debian/doxygen && doxygen

execute_after_dh_install-indep:
	dh_doxygen