aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorB. Watson <yalhcru@gmail.com>2022-04-14 15:22:22 -0400
committerB. Watson <yalhcru@gmail.com>2022-04-14 15:22:22 -0400
commitfb71eec28c092e3c0be866fe52cb89d2c06d9ba8 (patch)
tree9be920a884197a3bafd05776ae2b3ef7759eb12b /Makefile
parenta800d01375d989cefd56011467d26d51815ba2dc (diff)
downloadsbo-maintainer-tools-fb71eec28c092e3c0be866fe52cb89d2c06d9ba8.tar.gz
make it easier to run sbopkglint without installing it
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile9
1 files changed, 5 insertions, 4 deletions
diff --git a/Makefile b/Makefile
index baa5ab8..7351f2d 100644
--- a/Makefile
+++ b/Makefile
@@ -20,14 +20,15 @@ all:
@echo "Use 'make install PREFIX=<path>' to install $(PROJ)."
install: man
- install -d -oroot -groot -m0755 \
+ install -d -m0755 \
$(DESTDIR)$(TESTDIR) \
$(DESTDIR)$(BINDIR) \
$(DESTDIR)$(MAN1DIR) \
$(DESTDIR)$(DOCDIR)
- install -oroot -groot -m0755 $(SCRIPTS) $(DESTDIR)$(BINDIR)/
- install -oroot -groot -m0644 sbopkglint.d/* $(DESTDIR)$(TESTDIR)/
- install -oroot -groot -m0644 $(DOCS) $(DESTDIR)$(DOCDIR)/
+ install -m0755 $(SCRIPTS) $(DESTDIR)$(BINDIR)/
+ sed -i 's,@PREFIX@,$(PREFIX),' $(DESTDIR)$(BINDIR)/sbopkglint
+ install -m0644 sbopkglint.d/* $(DESTDIR)$(TESTDIR)/
+ install -m0644 $(DOCS) $(DESTDIR)$(DOCDIR)/
gzip -9c < sbolint.1 > $(DESTDIR)$(MAN1DIR)/sbolint.1.gz
gzip -9c < sbopkglint.1 > $(DESTDIR)$(MAN1DIR)/sbopkglint.1.gz