File: rules

package info (click to toggle)
q2templates 2020.11.1%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 620 kB
  • sloc: python: 1,449; makefile: 35; javascript: 28; sh: 17
file content (28 lines) | stat: -rwxr-xr-x 1,167 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
#!/usr/bin/make -f

# DH_VERBOSE := 1

export PYBUILD_AFTER_INSTALL=\
	ln -s /usr/share/javascript/bootstrap/js/bootstrap.min.js \
	    {destdir}/{install_dir}/q2templates/templates/assets/js/bootstrap.min.js; \
	ln -s /usr/share/javascript/jquery/jquery.min.js \
	    {destdir}/{install_dir}/q2templates/templates/assets/js/jquery.min.js; \
	ln -s /usr/share/javascript/bootstrap/css/bootstrap.min.css \
	    {destdir}/{install_dir}/q2templates/templates/assets/css/bootstrap.min.css; \
	ln -s /usr/share/javascript/normalize.css/normalize.css \
	    {destdir}/{install_dir}/q2templates/templates/assets/css/normalize.css; \
	ln -s /usr/share/javascript/bootstrap/fonts \
	    {destdir}/{install_dir}/q2templates/templates/assets/fonts

%:
	dh $@ --with python3 --buildsystem=pybuild

override_dh_auto_test:
ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
	dh_auto_test -- -s custom --test-args="cd {build_dir}; py.test-3"
endif

override_dh_auto_clean:
	dh_auto_clean
	rm -rf .pybuild
	rm -f q2templates.egg-info/PKG-INFO q2templates.egg-info/SOURCES.txt q2templates.egg-info/dependency_links.txt q2templates.egg-info/not-zip-safe q2templates.egg-info/top_level.txt