summaryrefslogtreecommitdiffhomepage
path: root/Makefile
diff options
context:
space:
mode:
authorAki <please@ignore.pl>2020-08-16 13:57:32 +0200
committerAki <please@ignore.pl>2020-08-16 13:57:32 +0200
commit298e4732739f13f84c388deff33b5bd5ba01e624 (patch)
tree4724b7ec4bf4a82517a98b374d95880788734519 /Makefile
parent875a8c50057e5d8cae617f281b4d67c1cce22b34 (diff)
downloadplop-298e4732739f13f84c388deff33b5bd5ba01e624.zip
plop-298e4732739f13f84c388deff33b5bd5ba01e624.tar.gz
plop-298e4732739f13f84c388deff33b5bd5ba01e624.tar.bz2
Added default script installation
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile5
1 files changed, 5 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 3aaef4a..dfdafc0 100644
--- a/Makefile
+++ b/Makefile
@@ -17,13 +17,18 @@ clean:
install: plop
mkdir -p $(PREFIX)/bin
mkdir -p $(PREFIX)/share/man/man1
+ mkdir -p $(PREFIX)/share/plop
cp -f plop $(PREFIX)/bin
cp -f plop.1 $(PREFIX)/share/man/man1
+ cp -f default.lua $(PREFIX)/share/plop
chmod 755 $(PREFIX)/bin/plop
chmod 644 $(PREFIX)/share/man/man1/plop.1
+ chmod 644 $(PREFIX)/share/plop/default.lua
uninstall:
rm -f $(PREFIX)/bin/plop
rm -f $(PREFIX)/share/man/man1/plop.1
+ rm -f $(PREFIX)/share/plop/default.lua
+ rmdir --ignore-fail-on-non-empty $(PREFIX)/share/plop
.PHONY: clean install uninstall