From f09f44c4f673dcf317dec52b7869b5069acaeb0e Mon Sep 17 00:00:00 2001 From: nobodyatandnothing <91722596+nobodyatandnothing@users.noreply.github.com> Date: Thu, 2 Jun 2022 19:16:15 -0400 Subject: [PATCH] Update Makefile --- Makefile | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/Makefile b/Makefile index 7bc63e3..4d97020 100644 --- a/Makefile +++ b/Makefile @@ -39,6 +39,16 @@ count: @echo "Everything:" @cat $(SRCS) *.h */*.h | wc +prefix = /usr/local +bindir = $(prefix)/bin +INSTALL = install + +install: all + $(INSTALL) -Dm755 picoc $(DESTDIR)$(bindir)/picoc + +uninstall: + rm $(DESTDIR)$(bindir)/picoc + .PHONY: clibrary.c picoc.o: picoc.c picoc.h