File: rules

package info (click to toggle)
hwloc 1.11.12-3
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 17,088 kB
  • sloc: ansic: 39,703; xml: 7,505; sh: 5,885; makefile: 1,684; php: 8; sed: 4
file content (27 lines) | stat: -rwxr-xr-x 757 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
#!/usr/bin/make -f

%:
	dh $@ --with autoreconf --parallel

DEB_HOST_MULTIARCH  ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH)

override_dh_auto_configure:
	dh_auto_configure -- --enable-static --enable-plugins --enable-doxygen

override_dh_auto_install:
	dh_auto_install

	mkdir -p $(CURDIR)/debian/tmp/usr/include/$(DEB_HOST_MULTIARCH)/hwloc/autogen
	mv $(CURDIR)/debian/tmp/usr/include/hwloc/autogen/config.h $(CURDIR)/debian/tmp/usr/include/$(DEB_HOST_MULTIARCH)/hwloc/autogen/

debian/libhwloc5.links: debian/libhwloc5.links.in
	sed -e 's/@DEB_HOST_MULTIARCH@/$(DEB_HOST_MULTIARCH)/g' < $< > $@
override_dh_link: debian/libhwloc5.links
	dh_link

override_dh_clean:
	dh_clean
	rm -f debian/libhwloc5.links

override_dh_makeshlibs:
	dh_makeshlibs -V