File: rules

package info (click to toggle)
renaissance 0.9.0-6
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 3,028 kB
  • sloc: objc: 12,332; makefile: 33; perl: 25
file content (48 lines) | stat: -rwxr-xr-x 1,251 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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
#!/usr/bin/make -f
#export DH_VERBOSE = 1

include /usr/share/GNUstep/debian/config.mk
export DEB_BUILD_MAINT_OPTIONS = hardening=+all

# Upstream documentation uses causes unreproducible builds:
# https://tests.reproducible-builds.org/debian/issues/unstable/timestamps_in_ps_generated_by_dvips_issue.html
include /usr/share/dpkg/pkg-info.mk
export FORCE_SOURCE_DATE := 1

doc := usr/share/doc
d_doc := debian/tmp/$(doc)

%:
	dh $@

override_dh_auto_build-arch:
	dh_auto_build -- $(optim) $(verbose) \
	  $(shell dpkg-buildflags --export=cmdline)

override_dh_auto_build-indep:
ifdef docs
	dh_auto_build -- -C Documentation $(verbose)
endif

override_dh_auto_install-indep:
ifdef docs
	dh_auto_install -- -C Documentation/Tutorials \
	  GNUSTEP_SYSTEM_DOC=$(doc)/html/tutorial
	mv $(d_doc)/html/tutorial/*.ps $(d_doc)
	dh_auto_install -- -C Documentation SUBPROJECTS= \
	  GNUSTEP_SYSTEM_DOC=$(doc)/html/manual
	mv $(d_doc)/html/manual/*.ps $(d_doc)
endif

execute_after_dh_install-arch:
	find debian/renaissance-dev-tools$(GNUSTEP_SYSTEM_APPS) \
	  -name \*.desktop -delete

override_dh_auto_clean-indep:
	dh_auto_clean -- -C Documentation

override_dh_installexamples:
	dh_installexamples --exclude=.cvsignore

execute_before_dh_link:
	gsdh_gnustep