build: remove some old makefile command now handled in the Justfile.
This commit is contained in:
parent
f86eb8c27c
commit
f12f684eb1
4 changed files with 6 additions and 45 deletions
42
Makefile
42
Makefile
|
|
@ -73,11 +73,6 @@ dev:
|
|||
@sudo install -Dm644 ${BUILD}/apparmor.d/${name} /etc/apparmor.d/${name}
|
||||
@sudo systemctl restart apparmor || sudo journalctl -xeu apparmor.service
|
||||
|
||||
.PHONY: package
|
||||
dist ?= archlinux
|
||||
package:
|
||||
@bash dists/docker.sh ${dist}
|
||||
|
||||
.PHONY: pkg
|
||||
pkg:
|
||||
@makepkg --syncdeps --install --cleanbuild --force --noconfirm
|
||||
|
|
@ -92,43 +87,6 @@ rpm:
|
|||
@bash dists/build.sh rpm
|
||||
@sudo rpm -ivh --force ${PKGDEST}/${PKGNAME}-*.rpm
|
||||
|
||||
.PHONY: tests
|
||||
tests:
|
||||
@go test ./cmd/... -v -cover -coverprofile=coverage.out
|
||||
@go test ./pkg/... -v -cover -coverprofile=coverage.out
|
||||
@go tool cover -func=coverage.out
|
||||
|
||||
.PHONY: lint
|
||||
lint:
|
||||
@golangci-lint run
|
||||
@make --directory=tests lint
|
||||
@shellcheck --shell=bash \
|
||||
PKGBUILD dists/build.sh dists/docker.sh tests/check.sh \
|
||||
tests/packer/init.sh tests/packer/src/aa-update tests/packer/clean.sh \
|
||||
debian/${PKGNAME}.postinst debian/${PKGNAME}.postrm
|
||||
|
||||
.PHONY: check
|
||||
check:
|
||||
@bash tests/check.sh
|
||||
|
||||
.PHONY: integration
|
||||
integration:
|
||||
@bats --recursive --timing --print-output-on-failure tests/integration/
|
||||
|
||||
.PHONY: manual
|
||||
manual:
|
||||
@pandoc -t man -s -o root/usr/share/man/man8/aa-log.8 root/usr/share/man/man8/aa-log.md
|
||||
|
||||
.PHONY: docs
|
||||
docs:
|
||||
@ENABLED_GIT_REVISION_DATE=false MKDOCS_OFFLINE=true mkdocs build --strict
|
||||
|
||||
.PHONY: serve
|
||||
serve:
|
||||
@ENABLED_GIT_REVISION_DATE=false MKDOCS_OFFLINE=false mkdocs serve
|
||||
|
||||
.PHONY: clean
|
||||
clean:
|
||||
@rm -rf \
|
||||
debian/.debhelper debian/debhelper* debian/*.debhelper debian/${PKGNAME} \
|
||||
.pkg/${PKGNAME}* ${BUILD} coverage.out
|
||||
|
|
|
|||
|
|
@ -3,7 +3,10 @@
|
|||
# Copyright (C) 2022-2024 Alexandre Pujol <alexandre@pujol.io>
|
||||
# SPDX-License-Identifier: GPL-2.0-only
|
||||
|
||||
# Usage: make package dist=<distribution> version=<version>
|
||||
# Usage:
|
||||
# just package ubuntu24
|
||||
# just package archlinux
|
||||
# just package opensuse
|
||||
|
||||
set -eu -o pipefail
|
||||
|
||||
|
|
|
|||
|
|
@ -19,7 +19,7 @@ Misconfigured AppArmor profiles is one of the most effective ways to break someo
|
|||
- Ensure modern profile naming
|
||||
- Ensure `vim:syntax=apparmor`
|
||||
|
||||
- [x] **[Integration Tests:](integration.md)** `make integration`
|
||||
- [x] **[Integration Tests:](integration.md)** `just integration <dist> <flavor>`
|
||||
- Run simple CLI commands to ensure no logs are raised.
|
||||
- Uses the [bats](https://github.com/bats-core/bats-core) test system.
|
||||
- Run in the Github Action as well as in all local [test VM](vm.md).
|
||||
|
|
|
|||
|
|
@ -92,7 +92,7 @@ Instead, install an individual profile or the development package, the following
|
|||
For any system with docker installed you can simply build the package with:
|
||||
|
||||
```sh
|
||||
make package dist=<distribution>
|
||||
just package <distribution>
|
||||
```
|
||||
|
||||
Then you can install the package with `dpkg`, `pacman` or `rpm`.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue