File: rules

package info (click to toggle)
fparserc%2B%2B 4.5.2-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, buster, sid
  • size: 6,132 kB
  • sloc: cpp: 23,297; pascal: 7,097; yacc: 1,650; ansic: 973; makefile: 307; php: 53; sh: 28
file content (33 lines) | stat: -rwxr-xr-x 786 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
#!/usr/bin/make -f

# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1

export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed

export DEB_BUILD_MAINT_OPTIONS = hardening=+all

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

%:
	dh $@


override_dh_auto_configure:
	mv util/tree_grammar_parser.cc util/tree_grammar_parser.cc.bak
	make util/tree_grammar_parser.cc
	make fpoptimizer.cc
	mkdir -p build
	cd build && cmake -DCMAKE_INSTALL_PREFIX=/usr -DLIB_SUFFIX="/$(DEB_HOST_MULTIARCH)" ..

override_dh_auto_build:
	cd build && make

override_dh_auto_install:
	cd build && make DESTDIR=../debian/tmp install

override_dh_auto_clean:
	mv util/tree_grammar_parser.cc.bak util/tree_grammar_parser.cc || true
	$(RM) -r build
	dh_auto_clean
	$(RM) fpoptimizer.cc