File: rules

package info (click to toggle)
osinfo-db 0.20250606-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 28,856 kB
  • sloc: python: 2,161; sh: 357; makefile: 94
file content (32 lines) | stat: -rwxr-xr-x 804 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
31
32
#!/usr/bin/make -f
# See debhelper(7) (uncomment to enable)
# output every command that modifies files on the build system.
#export DH_VERBOSE = 1

COMMON_MAKE_ARGS = -f ../Makefile VPATH=..
ifneq (,$(filter parallel=%,$(DEB_BUILD_OPTIONS)))
COMMON_MAKE_ARGS += -j $(patsubst parallel=%,%,$(filter parallel=%,$(DEB_BUILD_OPTIONS)))
endif

%:
	dh $@

override_dh_auto_build:
	mkdir build
	make -C build $(COMMON_MAKE_ARGS) ARCHIVE=osinfo-db.tar.xz
	
override_dh_auto_clean:
	rm -rf build
	dh_auto_clean

override_dh_auto_test:
ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
	make -C build $(COMMON_MAKE_ARGS) check
endif

override_dh_auto_install:
	osinfo-db-import \
	    --root debian/osinfo-db/ \
	    --dir /usr/share/osinfo \
	    build/osinfo-db.tar.xz
	rm debian/osinfo-db/usr/share/osinfo/LICENSE