diff options
author | B. Watson <yalhcru@gmail.com> | 2022-04-04 14:07:14 -0400 |
---|---|---|
committer | B. Watson <yalhcru@gmail.com> | 2022-04-04 14:07:14 -0400 |
commit | 533599f74e56dc42bdac215e2d152f9769b6b56e (patch) | |
tree | 9a8d349d138937a7c2880589ae16078b68f4009e /Makefile | |
download | sbo-maintainer-tools-533599f74e56dc42bdac215e2d152f9769b6b56e.tar.gz |
initial commit
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..05b4e3c --- /dev/null +++ b/Makefile @@ -0,0 +1,41 @@ +PROJ=sbo-maintainer-tools +VERSION=0.4 + +PREFIX=/usr/local +DESTDIR= + +SHAREDIR=$(PREFIX)/share +TESTDIR=$(SHAREDIR)/$(PROJ)/sbopkglint.d +BINDIR=$(PREFIX)/bin +MANDIR=$(PREFIX)/man +MAN1DIR=$(MANDIR)/man1 +DOCDIR=$(PREFIX)/doc/$(PROJ)-$(VERSION) + +DOCS=README +SCRIPTS=sbopkglint sbolint + +all: + @echo "Use 'make install PREFIX=<path>' to install $(PROJ)." + +install: man + install -d -oroot -groot -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)/ + gzip -9c < sbolint.1 > $(DESTDIR)$(MAN1DIR)/sbolint.1.gz + gzip -9c < sbopkglint.1 > $(DESTDIR)$(MAN1DIR)/sbopkglint.1.gz + +clean: + rm -f sbopkglint.1 sbolint.1 + +man: sbopkglint.1 sbolint.1 + +sbolint.1: sbolint + ./sbolint --man > sbolint.1 + +sbopkglint.1: sbopkglint + ./sbopkglint --man > sbopkglint.1 |