File: rules

package info (click to toggle)
qemu-web-desktop 23.02.16%2Bds1-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 2,008 kB
  • sloc: perl: 1,303; sh: 98; makefile: 72
file content (26 lines) | stat: -rwxr-xr-x 519 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
#!/usr/bin/make -f

SYSEMULATOR=qemu-system-x86_64
ifeq ($(DEB_HOST_ARCH),arm64)
  SYSEMULATOR=qemu-system-aarch64
endif
ifeq ($(DEB_HOST_ARCH),ppc64el)
  SYSEMULATOR=qemu-system-ppc64
endif


%:
	dh $@ --with apache2 --with sysuser

override_dh_auto_build:
	mkdir build
	sed -e 's/qemu-system-x86_64/$(SYSEMULATOR)/' src/config.pl > build/config.pl
	cp src/apache.conf build/qemu-web-desktop.conf
	pandoc -s -o build/qwdctl.1 src/qwdctl.md

override_dh_install:
	dh_install

override_dh_clean:
	rm -rf build
	dh_clean