From 390a74ffdcd3add56a84925401f9aba86dac1280 Mon Sep 17 00:00:00 2001 From: DeepChirp Date: Wed, 9 Sep 2026 11:35:50 +0800 Subject: [PATCH] chore(makefile): support DESTDIR and add .PHONY targets - Support DESTDIR for staging installations (e.g., PKGBUILD) - Ensure target directory exists before copying - Declare .PHONY for install and lint targets --- Makefile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index e158e6fa..d790e807 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,8 @@ +.PHONY: install lint + install: - cp -R *.cgroups *.types ananicy.conf 00-default /etc/ananicy.d/ + mkdir -p $(DESTDIR)/etc/ananicy.d + cp -R *.cgroups *.types ananicy.conf 00-default $(DESTDIR)/etc/ananicy.d/ + lint: python lint.py