File: rules

package info (click to toggle)
tlog 14-2.1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 2,172 kB
  • sloc: ansic: 15,890; python: 1,185; makefile: 526; sh: 114
file content (29 lines) | stat: -rwxr-xr-x 854 bytes parent folder | download | duplicates (2)
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
#!/usr/bin/make -f

# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1

DEB_BUILD_MAINT_OPTIONS = hardening=+all
DEB_CFLAGS_MAINT_APPEND = -Wall -Wextra
DPKG_EXPORT_BUILDFLAGS = 1
-include /usr/share/dpkg/buildflags.mk

ifneq ($(DEB_HOST_ARCH_OS),linux)
DISABLE_JOURNAL:=--disable-journal
endif

%:
	dh $@

override_dh_auto_configure:
	dh_auto_configure -- \
		--enable-utempter $(DISABLE_JOURNAL)

override_dh_auto_install:
#	dh_install -p libtlog0 lib/tlog/.libs/libtlog.so.0.0.0 usr/lib/$(DEB_HOST_MULTIARCH)/
#	dh_install -p libtlog0 lib/tlog/.libs/libtlog.so.0 usr/lib/$(DEB_HOST_MULTIARCH)/
	dh_auto_install
	rm -r $(CURDIR)/debian/tmp/usr/include
	rm -f $(CURDIR)/debian/tmp/usr/lib/$(DEB_HOST_MULTIARCH)/*.a
	rm -f $(CURDIR)/debian/tmp/usr/lib/$(DEB_HOST_MULTIARCH)/*.la
	rm -f $(CURDIR)/debian/tmp/usr/lib/$(DEB_HOST_MULTIARCH)/*.so