aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorLouis Burda <dev@sinitax.com>2026-01-23 02:19:21 +0100
committerLouis Burda <dev@sinitax.com>2026-01-23 02:19:21 +0100
commit4779981ac8af91788106d8c98f1148bf0d24c582 (patch)
tree529fdb03686c36ab27e8345b974de7d5becdd9ca /Makefile
parenta16ade437116642ddcc05c02ddb4db64d8b514bd (diff)
downloadjgrep-main.tar.gz
jgrep-main.zip
Add Makefile for installHEADmain
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile15
1 files changed, 15 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..25ade59
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,15 @@
+PREFIX ?= /usr/local
+BINDIR ?= $(PREFIX)/bin
+MANDIR ?= $(PREFIX)/share/man/man1
+
+.PHONY: install uninstall
+
+install:
+ install -d "$(DESTDIR)$(BINDIR)"
+ install -m 755 jgrep "$(DESTDIR)$(BINDIR)/jgrep"
+ install -d "$(DESTDIR)$(MANDIR)"
+ install -m 644 jgrep.1 "$(DESTDIR)$(MANDIR)/jgrep.1"
+
+uninstall:
+ rm -f "$(DESTDIR)$(BINDIR)/jgrep"
+ rm -f "$(DESTDIR)$(MANDIR)/jgrep.1"