forked from fraction/sshcd
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
29 lines (24 loc) · 670 Bytes
/
Makefile
File metadata and controls
29 lines (24 loc) · 670 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
PREFIX ?= /usr/local
BIN ?= /bin
DATA ?= /share
BINDIR ?= $(PREFIX)$(BIN)
DATADIR ?= $(PREFIX)$(DATA)
COMMAND ?= sshcd
PKGNAME ?= sshcd
.PHONY: all
all:
@echo Nothing to compile
.PHONY: install
install:
install -dm755 "$(DESTDIR)$(BINDIR)"
install -m755 sshcd "$(DESTDIR)$(BINDIR)/$(COMMAND)"
install -dm755 "$(DESTDIR)$(DATADIR)/licenses/$(PKGNAME)"
install -m644 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