File: rules

package info (click to toggle)
angelscript 2.35.1%2Bds-3
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 5,388 kB
  • sloc: cpp: 71,969; asm: 1,558; makefile: 665; xml: 214; javascript: 42; python: 22; ansic: 22; sh: 7
file content (43 lines) | stat: -rwxr-xr-x 1,093 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
#!/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 $@ --with pkgkde_symbolshelper

execute_after_dh_auto_clean:
	-+$(MAKE) -C samples clean
	rm -rf debian/doxygen/output
	rm -rf Makefile
	rm -rf samples/Makefile

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