From 363742d74864f0883fd8ee081f6ab2ba3ea71ac0 Mon Sep 17 00:00:00 2001 From: s-over-4 Date: Mon, 12 Jun 2023 21:06:08 -0400 Subject: make --- Makefile | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index ba0f1de..df0a9bb 100644 --- a/Makefile +++ b/Makefile @@ -13,10 +13,10 @@ $(name): $(objects) install: make - cp ./$(name) $(XDG_DATA_HOME)/bin/$(name) + [ $(XDG_DATA_HOME) ] && cp ./$(name) $(XDG_DATA_HOME)/bin/$(name) || cp ./$(name) /usr/local/bin/$(name) uninstall: - rm -f $(XDG_DATA_HOME)/bin/$(name) + [ $(XDG_DATA_HOME) ] && rm -f $(XDG_DATA_HOME)/bin/$(name) || rm -f /usr/local/bin/$(name) clean: rm -f ./$(name) ./src/*.o @@ -26,3 +26,5 @@ me: a sandwich: @exit + +.PHONY: install uninstall clean me a sandwich -- cgit v1.2.3