Skip to content

Commit

Permalink
Merge pull request #8 from christianbundy/resolve-makefile-changes
Browse files Browse the repository at this point in the history
Clean up Makefile and change prefix to /usr/local
  • Loading branch information
christianbundy committed Feb 16, 2014
2 parents fa594ca + 7ccc1c3 commit 3c6fe80
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
PREFIX ?= /usr
PREFIX ?= /usr/local
BIN ?= /bin
DATA ?= /share
BINDIR ?= $(PREFIX)$(BIN)
Expand All @@ -7,25 +7,21 @@ DATADIR ?= $(PREFIX)$(DATA)
COMMAND ?= sshcd
PKGNAME ?= sshcd


.PHONY: all
all:
@echo Nothing to compile


.PHONY: install
install:
install -Dm755 sshcd -- "$(DESTDIR)$(BINDIR)/$(COMMAND)"
install -Dm644 LICENSE -- "$(DESTDIR)$(DATADIR)/licenses/$(PKGNAME)/LICENSE"


.PHONY: uninstall
uninstall:
-unlink -- "$(DESTDIR)$(BINDIR)/$(COMMAND)"
-unlink -- "$(DESTDIR)$(DATADIR)/licenses/$(PKGNAME)/LICENSE"
-rmdir -- "$(DESTDIR)$(DATADIR)/licenses/$(PKGNAME)"


.PHONY: clean
clean:
@echo Nothing to clean
Expand Down

0 comments on commit 3c6fe80

Please sign in to comment.