File: rules

package info (click to toggle)
shared-mime-info 2.4-5
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 19,800 kB
  • sloc: cpp: 3,175; xml: 2,182; ansic: 612; python: 168; sh: 121; javascript: 113; lisp: 29; cobol: 20; makefile: 16; cs: 13; perl: 11; java: 7; objc: 6; php: 1; vhdl: 1
file content (20 lines) | stat: -rwxr-xr-x 524 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/usr/bin/make -f
# -*- mode: makefile; coding: utf-8 -*-

export DEB_BUILD_MAINT_OPTIONS = hardening=+all
export DEB_LDFLAGS_MAINT_APPEND = -Wl,-O1 -Wl,-z,defs

%:
	dh $@

execute_before_dh_install:
ifeq ($(filter nodoc,$(DEB_BUILD_PROFILES)),)
	docbook2pdf -o data data/shared-mime-info-spec.xml
	docbook2html -o data/shared-mime-info-spec.html data/shared-mime-info-spec.xml
endif

override_dh_compress:
	dh_compress -X.pdf

execute_after_dh_clean:
	rm -rf data/shared-mime-info-spec.html data/shared-mime-info-spec.pdf