Merge pull request #17 from charlesrocket/install

makefile: Add install/uninstall target
This commit is contained in:
dzaima 2022-03-24 10:31:42 +02:00 committed by GitHub
commit 85ab47e44d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -147,7 +147,11 @@ src/singeli/gen/%.c: src/singeli/src/%.singeli preSingeliBin
# dependency files
-include $(bd)/*.d
install:
cp -f BQN /usr/local/bin/bqn
uninstall:
rm -f /usr/local/bin/bqn
# `if` to allow `make clean` alone to clean everything, but `make t=debug clean` to just clean obj/debug
ifneq (,$(findstring clean,$(MAKECMDGOALS)))