5
0
mirror of git://git.proxmox.com/git/qemu-server.git synced 2025-01-18 06:03:55 +03:00
Thomas Lamprecht 301cc2bfb0 add pve prefix to query-machine-capabilities.service
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2024-11-18 21:56:15 +01:00

21 lines
577 B
Makefile

DESTDIR=
PREFIX=/usr
BINDIR=${PREFIX}/libexec/qemu-server
SERVICEDIR=/lib/systemd/system
CC ?= gcc
CFLAGS += -O2 -fanalyzer -Werror -Wall -Wextra -Wpedantic -Wtype-limits -Wl,-z,relro -std=gnu11
query-machine-capabilities: query-machine-capabilities.c
$(CC) $(CFLAGS) -o $@ $< $(LDFLAGS)
.PHONY: install
install: query-machine-capabilities
install -d ${DESTDIR}/${BINDIR}
install -m 0755 query-machine-capabilities ${DESTDIR}${BINDIR}
install -m 0644 pve-query-machine-capabilities.service ${DESTDIR}${SERVICEDIR}
.PHONY: clean
clean:
rm -f query-machine-capabilities