File: rules

package info (click to toggle)
autodir 0.99.9-18
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 2,124 kB
  • sloc: sh: 8,333; ansic: 7,615; xml: 426; makefile: 71
file content (30 lines) | stat: -rwxr-xr-x 1,150 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
#!/usr/bin/make -f

export DH_VERBOSE=1

include /usr/share/dpkg/architecture.mk

%:
	dh $@ --without autoreconf

override_dh_auto_configure:
	dh_update_autotools_config
	# upstream autotools stuff is old enough to miss --runstatedir option and break debhelper(>10)
	# dh_auto_configure -- --prefix=/usr --mandir=\$${prefix}/share/man --infodir=\$${prefix}/share/info --libdir=\$${prefix}/lib
	./configure --infodir=\${prefix}/share/info --disable-option-checking --disable-silent-rules --libdir=\${prefix}/lib/$(DEB_HOST_MULTIARCH) --disable-dependency-tracking \
		--prefix=/usr --mandir=\$${prefix}/share/man --infodir=\$${prefix}/share/info --libdir=\$${prefix}/lib --build=$(DEB_BUILD_GNU_TYPE) --host=$(DEB_HOST_GNU_TYPE)

override_dh_auto_install:
	dh_auto_install
	( cd $(CURDIR)/debian/autodir/usr/lib/autodir && rm -f *.a *.la )

override_dh_auto_clean:
	dh_auto_clean

override_dh_installinit:
	dh_installinit --name=autodir autodir.init

override_dh_installsystemd:
	dh_installsystemd --name=autodir-home autodir-home.service
	dh_installsystemd --name=autodir-group autodir-group.service
	dh_installsystemd --name=autodir autodir.service