build(opensuse): improve opensuse build process.

This commit is contained in:
Alexandre Pujol 2024-03-17 21:34:06 +00:00
parent 233b1f2f0e
commit 158c6006b1
No known key found for this signature in database
GPG key ID: C5469996F0DF68EC
2 changed files with 6 additions and 5 deletions

View file

@ -26,7 +26,7 @@ full: build
ROOT = $(shell find "${BUILD}/root" -type f -printf "%P\n")
PROFILES = $(shell find "${BUILD}/apparmor.d" -type f -printf "%P\n")
install:
@install -Dm755 ${BUILD}/aa-log ${DESTDIR}/usr/bin/aa-log
@install -Dm0755 ${BUILD}/aa-log ${DESTDIR}/usr/bin/aa-log
@for file in ${ROOT}; do \
install -Dm0644 "${BUILD}/root/$${file}" "${DESTDIR}/$${file}"; \
done;
@ -78,7 +78,7 @@ dpkg:
rpm:
@bash dists/build.sh rpm
@sudo rpm -i ${PKGNAME}-*.rpm
@sudo rpm -ivh --force ${PKGNAME}-*.rpm
tests:
@go test ./cmd/... -v -cover -coverprofile=coverage.out