summaryrefslogtreecommitdiffstats
path: root/debian/rules
blob: a6388f84bb08dff3bc238abc53400bc1ee73283e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/usr/bin/make -f

WP_CONTENT = debian/wordpress/var/lib/wordpress/wp-content

%:
	dh $@ --with linktree

override_dh_auto_build:
	set -e; for i in $$(find debian/languages/ -name *.po); do \
		msgfmt $$i -o $${i%%.po}.mo; \
        done
	pod2man --utf8 --center wp-setup debian/wp-setup debian/wp-setup.1

override_dh_install:
	dh_install -Xlicense.txt -Xlicense.commercial.txt -XLICENSE \
		-XCOPYING -Xwp-includes/certificates/ca-bundle.crt

override_dh_fixperms:
	dh_fixperms
	chown -R www-data:www-data $(WP_CONTENT)