File: rules

package info (click to toggle)
gumbo-parser 0.10.1+dfsg-2.4
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, sid
  • size: 1,904 kB
  • sloc: ansic: 30,320; cpp: 3,694; python: 880; makefile: 92; sh: 15
file content (21 lines) | stat: -rwxr-xr-x 619 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
#!/usr/bin/make -f

%:
	dh $@ --with autoreconf,python3 --buildsystem=autoconf

override_dh_auto_clean:
	dh_auto_clean
	$(RM) -rfv build/
	$(RM) -rfv docs/
	$(RM) -rfv python/gumbo.egg-info/
	$(RM) -rfv Makefile.in aclocal.m4 compile config.guess config.sub \
	           configure depcomp install-sh ltmain.sh m4/ missing test-driver

override_dh_auto_install:
	dh_auto_install
	python3 setup.py install --root=$(CURDIR)/debian/python3-gumbo --install-layout=deb
	# Remove tests
	find $(CURDIR)/debian/python3-gumbo -name '*_test.py' | xargs $(RM) -rfv

override_dh_installchangelogs:
	dh_installchangelogs CHANGES.md