File: rules

package info (click to toggle)
zthreads 2.3.2-10
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 2,532 kB
  • sloc: sh: 8,432; cpp: 6,032; ansic: 126; makefile: 109; javascript: 6
file content (22 lines) | stat: -rwxr-xr-x 706 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
#!/usr/bin/make -f

DESTDIR=$(CURDIR)/debian/tmp
DEB_HOST_MULTIARCH ?= $(dpkg-architecture -qDEB_HOST_MULTIARCH)
DEB_HOST_ARCH      ?= $(dpkg-architecture -qDEB_HOST_ARCH)
export DEB_HOST_MULTIARCH DEB_HOST_ARCH
export DEB_BUILD_MAINT_OPTIONS = hardening=+all

%:
	dh $@

override_dh_auto_clean:
	dh_auto_clean
	$(RM) config.log

override_dh_auto_install:
	install -d $(DESTDIR)/usr/lib/$(DEB_HOST_MULTIARCH)
	install -d $(DESTDIR)/usr/bin
	cp -a include $(DESTDIR)/usr
	cp -a src/.libs/*.so* src/.libs/*.la src/.libs/*.a $(DESTDIR)/usr/lib/$(DEB_HOST_MULTIARCH)
	cp -a share/zthread-config $(DESTDIR)/usr/bin
	cd $(DESTDIR)/usr/lib/$(DEB_HOST_MULTIARCH) && ln -s libZThread-2.3.so.2.0.0 libZThread-2.3.so