File: rules

package info (click to toggle)
nabi 1.0.0-4
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye
  • size: 3,048 kB
file content (31 lines) | stat: -rwxr-xr-x 781 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
#!/usr/bin/make -f
#export DH_VERBOSE=1
export DEB_BUILD_MAINT_OPTIONS = hardening=+all
export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed

%:
	dh $@

override_dh_autoreconf:
	touch ChangeLog
	glib-gettextize --copy --force
	dh_autoreconf --as-needed

override_dh_auto_configure:
	dh_auto_configure -- --with-default-keyboard=2

DB2MAN=/usr/share/sgml/docbook/stylesheet/xsl/nwalsh/manpages/docbook.xsl
XP=xsltproc -''-nonet

override_dh_auto_build:
	dh_auto_build
	$(XP) -o $(CURDIR)/debian/nabi.1 $(DB2MAN) $(CURDIR)/debian/nabi.dbk

override_dh_installdocs:
	dh_installdocs
	cd $(CURDIR)/debian/nabi/usr/share/nabi/themes/ && for D in *; do \
	  if [ -f $$D/README ]; then \
	    echo $$D/README; \
	    mv $$D/README ../../doc/nabi/README.themes.$$D || exit 1; \
	  fi; \
	done