File: rules

package info (click to toggle)
ablog 0.11.12-11
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 840 kB
  • sloc: python: 2,389; makefile: 45
file content (30 lines) | stat: -rwxr-xr-x 839 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
#!/usr/bin/make -f

export PYBUILD_NAME=ablog

SHELL := sh -e

%:
	dh ${@} --buildsystem=pybuild

execute_after_dh_auto_clean:
	# help pybuild
	rm -rf *.egg-info

override_dh_auto_test:
	# disabled: needs fixes upstream

execute_after_dh_auto_install:
	# removing unused files
	rm -rf debian/python3-sphinx-ablog/usr/lib/python3*/dist-packages/ablog/tests

execute_after_dh_python3:
	# moving data files
	mkdir -p debian/python3-sphinx-ablog/usr/share/python3-sphinx-ablog

	for ITEM in locales stylesheets templates; \
	do \
		cp -a src/ablog/$${ITEM} debian/python3-sphinx-ablog/usr/share/python3-sphinx-ablog; \
		rm -rf debian/python3-sphinx-ablog/usr/lib/python3*/dist-packages/ablog/$${ITEM}; \
		ln -s ../../../../share/python3-sphinx-ablog/$${ITEM} debian/python3-sphinx-ablog/usr/lib/python3/dist-packages/ablog/$${ITEM}; \
	done