File: rules

package info (click to toggle)
udo 6.4.1-8
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 5,676 kB
  • sloc: ansic: 42,702; makefile: 79; cpp: 19
file content (45 lines) | stat: -rwxr-xr-x 1,519 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
#!/usr/bin/make -f
#export DH_VERBOSE = 1

include /usr/share/dpkg/architecture.mk

export DEB_BUILD_MAINT_OPTIONS=hardening=+all,-format

%:
	dh $@

override_dh_auto_clean:
	$(MAKE) -C Source -f Makefile.debian clean
	rm -rf eng ger
	dh_auto_clean

override_dh_auto_build:
	$(MAKE) -C Source -f Makefile.debian \
		CFLAGS="$(CFLAGS) $(CPPFLAGS) -D__LINUX__" LDFLAGS="$(LDFLAGS)"
	mkdir -p eng/html/images
	mkdir -p ger/html/images
	Source/udo --nroff -q -o udo.1 $(CURDIR)/Guide/eng/manual/manpage.u
	Source/udo -a -q -o eng/udo.txt $(CURDIR)/Guide/eng/manual/index.u
	Source/udo -a -q -o ger/udo.txt $(CURDIR)/Guide/ger/manual/index.u
	cp Guide/eng/manual/images/*.gif eng/html/images/
	Source/udo --no-logfile --html -q -o eng/html/index.html $(CURDIR)/Guide/eng/manual/index.u
	cp Guide/ger/manual/images/*.gif ger/html/images/
	Source/udo --no-logfile --html -q -o ger/html/index.html $(CURDIR)/Guide/ger/manual/index.u
ifneq ($(DEB_BUILD_ARCH),$(DEB_HOST_ARCH))
	dh_auto_clean --sourcedirectory=Source --buildsystem=makefile -- -f Makefile.debian
	dh_auto_build --sourcedirectory=Source --buildsystem=makefile -- -f Makefile.debian \
		CFLAGS="$(CFLAGS) $(CPPFLAGS) -D__LINUX__" LDFLAGS="$(LDFLAGS)"
endif

override_dh_auto_install:
	$(MAKE) -C Source -f Makefile.debian install DESTDIR=$(CURDIR)/debian/tmp

execute_after_dh_install-indep:
	jdupes -rl debian/udo-doc-en
	jdupes -rl debian/udo-doc-de

override_dh_installchangelogs:
	dh_installchangelogs -X Changes

override_dh_compress:
	dh_compress -X.ui -X.u