File: rules

package info (click to toggle)
generator-scripting-language 4.1.5-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 10,424 kB
  • sloc: ansic: 106,060; cpp: 2,232; pascal: 762; sh: 535; xml: 424; makefile: 189
file content (31 lines) | stat: -rwxr-xr-x 913 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
#!/usr/bin/make -f
#export DH_VERBOSE=1
export DEB_BUILD_MAINT_OPTIONS = hardening=+all

ifneq (,$(filter parallel=%,$(DEB_BUILD_OPTIONS)))
    PAR := $(patsubst parallel=%,%,$(filter parallel=%,$(DEB_BUILD_OPTIONS)))
    MAKEFLAGS += -j$(PAR)
endif

%:
	dh $@

export CCLIBS=$(CURDIR)/debian/pcre3-$(DEB_HOST_GNU_TYPE)/libpcre.a
export DEB_CPPFLAGS_MAINT_APPEND=-I$(CURDIR)/debian/pcre3-$(DEB_HOST_GNU_TYPE)/

execute_after_dh_auto_clean:
	rm -rf $(CURDIR)/debian/pcre3-$(DEB_HOST_GNU_TYPE)

execute_before_dh_auto_build:
	mkdir -p $(CURDIR)/debian/pcre3-$(DEB_HOST_GNU_TYPE)
	cd $(CURDIR)/debian/pcre3-$(DEB_HOST_GNU_TYPE) && \
		cmake ../pcre3 \
			-DPCRE_SUPPORT_UTF=ON \
			-DPCRE_SUPPORT_UNICODE_PROPERTIES=ON \
			-DPCRE_BUILD_PCRECPP=OFF \
			-DPCRE_BUILD_PCREGREP=OFF \
			-DPCRE_BUILD_TESTS=OFF \
			-DPCRE_SUPPORT_LIBZ=OFF \
			-DPCRE_SUPPORT_LIBBZ2=OFF \
			-DPCRE_SUPPORT_LIBREADLINE=OFF && \
		make