File: rules

package info (click to toggle)
adminer 4.7.1-1%2Bdeb10u1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 2,608 kB
  • sloc: php: 25,013; javascript: 2,236; makefile: 21; sh: 3
file content (31 lines) | stat: -rwxr-xr-x 638 bytes parent folder | download | duplicates (3)
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
#!/usr/bin/make -f

SHARE := $(CURDIR)/debian/$(shell dh_listpackages)/usr/share

%:
	dh $@ --with apache2

override_dh_installchangelogs:
	dh_installchangelogs changes.txt

override_dh_installdocs:
	dh_installdocs
	
	# Move documentation to /usr/share/doc
	set -e; for X in designs plugins; do \
		mv -v $(SHARE)/adminer/$$X/readme.txt $(SHARE)/doc/adminer/readme-$$X.txt; \
	done

override_dh_auto_build:
	dh_auto_build
	php compile.php
	mv adminer-*.php adminer.php
	php compile.php editor
	mv editor-*.php editor.php

override_dh_apache2:
	dh_apache2 --noenable

override_dh_auto_clean:
	rm -f adminer*.php editor*.php
	dh_auto_clean