Skip to content
This repository has been archived by the owner on Jun 30, 2023. It is now read-only.

Commit

Permalink
uninstall
Browse files Browse the repository at this point in the history
  • Loading branch information
nikaro committed Jan 1, 2020
1 parent 811c7c2 commit 10fb02f
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
PREFIX?=/usr/local
_INSTDIR=${DESTDIR}${PREFIX}
BINDIR?=${_INSTDIR}/bin
MANDIR?=${_INSTDIR}/share/man
APP=devc

.PHONY: all
Expand All @@ -10,9 +14,16 @@ build:
@go build -o ${APP} main.go

.PHONY: install
## install: Install the application into /usr/local/bin/
## install: Install the application
install:
@install -t /usr/local/bin/ ${APP}
@echo "Installing..."
@install -t ${BINDIR}/ ${APP}

.PHONY: uninstall
## uninstall: Uninstall the application
uninstall:
@echo "Uninstalling..."
@rm -rf ${BINDIR}/${APP}

.PHONY: run
## run: Runs go run main.go
Expand Down

0 comments on commit 10fb02f

Please sign in to comment.