diff options
author | Andinus <andinus@nand.sh> | 2020-11-14 18:58:06 +0530 |
---|---|---|
committer | Andinus <andinus@nand.sh> | 2020-11-14 18:58:06 +0530 |
commit | 04da16dd682a073513e989276ed179a1a27f8c9a (patch) | |
tree | 0bef90f9c7a856fbcea861b39f936fdbbaf93777 /Makefile | |
parent | 7b42b7d76d3647bbbb3b4f7ec60f8321208b6a97 (diff) | |
download | leo-04da16dd682a073513e989276ed179a1a27f8c9a.tar.gz |
Add Makefile, man page, change config format, bump version v0.4.0
This commit pushes a lot of changes at once. Older config will no longer work with this. The file name will contain time in local timezone instead of UTC. Makefile & man page was copied from tomasino's pb(1). (tomasino.org)
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..e646a32 --- /dev/null +++ b/Makefile @@ -0,0 +1,26 @@ +# Install to /usr/local unless otherwise specified, such as `make +# PREFIX=/app`. +PREFIX?=/usr/local + +INSTALL?=install +INSTALL_PROGRAM=$(INSTALL) -Dm 755 +INSTALL_DATA=$(INSTALL) -Dm 644 + +bindir=$(DESTDIR)$(PREFIX)/bin +sharedir=$(DESTDIR)$(PREFIX)/share + +help: + @echo "targets:" + @awk -F '#' '/^[a-zA-Z0-9_-]+:.*?#/ { print $0 }' $(MAKEFILE_LIST) \ + | sed -n 's/^\(.*\): \(.*\)#\(.*\)/ \1|-\3/p' \ + | column -t -s '|' + +install: leo.pl leo.1 # system install + $(INSTALL_PROGRAM) leo.pl $(bindir)/leo + $(INSTALL_DATA) leo.1 $(sharedir)/man/man1/leo.1 + +uninstall: # system uninstall + rm -f $(bindir)/leo + rm -f $(sharedir)/man/man1/leo.1 + +.PHONY: install uninstall help |