aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorJozanLeClerc <bousset.rudy@gmail.com>2019-11-14 01:01:10 +0100
committerJozanLeClerc <bousset.rudy@gmail.com>2019-11-14 01:01:10 +0100
commit950d2e34c11c8794030fb1041d6e89294a1386a8 (patch)
treefc395094d797a8820407e5711610f3a6c712dcf8 /Makefile
parentBetter indentation (diff)
downloadlowbat-gnu-950d2e34c11c8794030fb1041d6e89294a1386a8.tar.gz
lowbat-gnu-950d2e34c11c8794030fb1041d6e89294a1386a8.tar.bz2
lowbat-gnu-950d2e34c11c8794030fb1041d6e89294a1386a8.tar.xz
lowbat-gnu-950d2e34c11c8794030fb1041d6e89294a1386a8.tar.zst
lowbat-gnu-950d2e34c11c8794030fb1041d6e89294a1386a8.zip
Finished Makefile
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile23
1 files changed, 22 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index b83631e..e785757 100644
--- a/Makefile
+++ b/Makefile
@@ -1 +1,22 @@
-SRCS
+.POSIX:
+
+OS = $(shell uname -s)
+ifeq ($(OS), Darwin)
+ PREFIX = /usr/local
+else
+ PREFIX = /usr
+endif
+MANPREFIX = $(PREFIX)/share/man
+
+install:
+ mkdir -p $(DESTDIR)$(PREFIX)/bin
+ cp -f bin/lowbat $(DESTDIR)$(PREFIX)/bin/
+ chmod 755 $(DESTDIR)$(PREFIX)$/bin/lowbat
+ mkdir -p $(DESTDIR)$(MANPREFIX)/man1
+ cp -f man/lowbat.1 $(DESTDIR)$(MANPREFIX)/man1/lowbat.1
+
+uninstall:
+ rm -f $(DESTDIR)$(PREFIX)/bin/lowbat
+ rm -f $(DESTDIR)$(MANPREFIX)/man1/lowbat.1
+
+.PHONY: install uninstall