From 5b3ccff915cef5d9de214ccec21937d808124ae2 Mon Sep 17 00:00:00 2001 From: fruzitent <40008647+fruzitent@users.noreply.github.com> Date: Mon, 26 May 2025 22:45:52 +0300 Subject: [PATCH] chore: use PHONY targets in Makefile (#596) --- Makefile | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Makefile b/Makefile index ffd1ca60..d44d64d5 100644 --- a/Makefile +++ b/Makefile @@ -3,18 +3,23 @@ export CARGO_NET_GIT_FETCH_WITH_CLI ?= true DESTDIR ?= / PREFIX ?= /usr/local +.PHONY: build-release build-release: cargo build -p lact --release +.PHONY: build-debug build-debug: cargo build -p lact +.PHONY: build-release-libadwaita build-release-libadwaita: cargo build -p lact --release --features=adw +.PHONY: build-release-headless build-release-headless: cargo build -p lact --release --no-default-features +.PHONY: install-resources install-resources: install -Dm644 res/lactd.service $(DESTDIR)$(PREFIX)/lib/systemd/system/lactd.service install -Dm644 res/io.github.ilya_zlobintsev.LACT.desktop $(DESTDIR)$(PREFIX)/share/applications/io.github.ilya_zlobintsev.LACT.desktop @@ -22,12 +27,15 @@ install-resources: install -Dm644 res/io.github.ilya_zlobintsev.LACT.svg $(DESTDIR)$(PREFIX)/share/icons/hicolor/scalable/apps/io.github.ilya_zlobintsev.LACT.svg install -Dm644 res/io.github.ilya_zlobintsev.LACT.metainfo.xml $(DESTDIR)$(PREFIX)/share/metainfo/io.github.ilya_zlobintsev.LACT.metainfo.xml +.PHONY: install install: install-resources install -Dm755 target/release/lact $(DESTDIR)$(PREFIX)/bin/lact +.PHONY: install-debug install-debug: install-resources install -Dm755 target/debug/lact $(DESTDIR)$(PREFIX)/bin/lact +.PHONY: uninstall uninstall: rm $(DESTDIR)$(PREFIX)/bin/lact rm $(DESTDIR)$(PREFIX)/lib/systemd/system/lactd.service