summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorGuangxiong Lin <[email protected]>2022-10-28 00:08:53 +0800
committerGuangxiong Lin <[email protected]>2022-10-28 00:08:53 +0800
commit19ef65bd645bf9264ebb43ebd8c617cd5e9d16d7 (patch)
tree78e1615612069b5972a4c8620a5182f9c6f27836 /Makefile
downloadwd-19ef65bd645bf9264ebb43ebd8c617cd5e9d16d7.tar.gz
wd-19ef65bd645bf9264ebb43ebd8c617cd5e9d16d7.tar.bz2
wd-19ef65bd645bf9264ebb43ebd8c617cd5e9d16d7.zip
First commitv0.0.1
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile26
1 files changed, 26 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..5a89949
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,26 @@
+PROG ?= wd
+PREFIX ?= /usr
+DESTDIR ?=
+BINDIR ?= $(PREFIX)/bin
+
+all:
+ @echo "$(PROG) is a shell script and doesn't need compilation. It can be simply executed."
+ @echo
+ @echo "To install it. Try \"make install\" instead."
+ @echo
+
+install:
+ @install -vm0755 \
+ "$(PROG)" \
+ "$(PROG)-journal" \
+ "$(DESTDIR)$(BINDIR)"
+ @echo
+ @echo "$(PROG) is installed succesfully"
+ @echo
+
+uninstall:
+ @rm -vrf \
+ "$(DESTDIR)$(BINDIR)/$(PROG)" \
+ "$(DESTDIR)$(BINDIR)/$(PROG)-journal"
+
+.PHONY: all install uninstall