make install rule to copy to /usr/local/bin
authorMischa POSLAWSKY <perl@shiar.org>
Wed, 16 Nov 2022 20:17:12 +0000 (21:17 +0100)
committerMischa POSLAWSKY <perl@shiar.org>
Mon, 21 Nov 2022 16:54:55 +0000 (17:54 +0100)
Makefile

index 0d7d36bb8abe17acdc9753ad059866f7d5ccc6c4..d6f0e7f2896cb1493c371a0a78d5408dbb78dba5 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,5 +1,14 @@
+prefix = /usr/local
+bindir = $(prefix)/bin
+
+INSTALL = install
+
 barcat: reformat-podusage
        ./$< $@
 
 test:
        prove -f t/regress.t
+
+install: barcat
+       $(INSTALL) -d '$(bindir)'
+       $(INSTALL) $< '$(bindir)'