From 9a016bd1a06c368748ef5c72ab21798f1884ba65 Mon Sep 17 00:00:00 2001 From: Alexandre Pujol Date: Tue, 4 Oct 2022 23:17:52 +0100 Subject: [PATCH] build: add initial makefile. --- Makefile | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 Makefile diff --git a/Makefile b/Makefile new file mode 100644 index 00000000..fdbfff7d --- /dev/null +++ b/Makefile @@ -0,0 +1,34 @@ +#!/usr/bin/make -f + +PKGNAME := apparmor.d + +.PHONY: install lint archlinux debian ubuntu whonix clean + +all: + @echo "Nothing to do." + +install: + @echo "Nothing to do." + +lint: + @shellcheck --shell=bash \ + PKGBUILD configure pick dists/build/build.sh \ + debian/${PKGNAME}.postinst debian/${PKGNAME}.postrm + +archlinux: + @bash dists/build/build.sh archlinux + +debian: + @bash dists/build/build.sh debian + +ubuntu: + @bash dists/build/build.sh ubuntu + +whonix: + @bash dists/build/build.sh whonix + +clean: + @rm -rf \ + debian/.debhelper debian/debhelper* debian/*.debhelper \ + ${PKGNAME}-*.pkg.tar.zst.sig ${PKGNAME}-*.pkg.tar.zst \ + ${PKGNAME}_*.* .build