X-Git-Url: https://git.rrq.au/?a=blobdiff_plain;f=Makefile;h=480c1083844538bca6b7a355af9d5c6bb7bd3ef4;hb=refs%2Fheads%2Fsuites%2Funstable;hp=174de1fd6c437862f4f1d1b62533d83e97bd8ba3;hpb=d40252c1ef27f119e9878e45d114f6e424cf069e;p=rrq%2Fnewlisp%2Fpacknl.git diff --git a/Makefile b/Makefile index 174de1f..480c108 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,4 @@ -all: packnl packnl.8 +all: packnl packnl.8 incore.lsp.8 main-args.lsp.8 packnl: packnl.lsp incore.lsp main-args.lsp newlisp -x incore.lsp $@ @@ -6,5 +6,30 @@ packnl: packnl.lsp incore.lsp main-args.lsp echo 'xxxxxxxxxxxxxxxxxxxxxx''xxxxxxxxxxxxxxxxxx' >> $@ for F in $^ ; do echo "$$F\n$$(stat -c %s $$F)" ; cat $$F ; done >> $@ -packnl.8: packnl.8.adoc - a2x -d manpage -f manpage $V $^ +%.8: %.8.adoc + asciidoctor -b manpage $^ + +clean: + rm -f packnl packnl.8 incore.lsp.8 + +# Installation targets + +BINFILES = packnl +MAN8FILES = packnl.8 incore.lsp.8 main-args.lsp.8 +LSPMODFILES = incore.lsp main-args.lsp + +BINDIR = $(DESTDIR)/usr/bin +MAN8DIR = $(DESTDIR)/usr/share/man/man8 +LSPMODDIR = $(DESTDIR)/usr/share/newlisp/modules + +INSTALLTARGETS = +INSTALLTARGETS += $(addprefix $(BINDIR)/,$(BINFILES)) +INSTALLTARGETS += $(addprefix $(MAN8DIR)/,$(MAN8FILES)) +INSTALLTARGETS += $(addprefix $(LSPMODDIR)/,$(LSPMODFILES)) + +INSTALL = install + +$(BINDIR)/% $(MAN8DIR)/% $(LSPMODDIR)/%: % + $(INSTALL) -D -T $< $@ + +install: $(INSTALLTARGETS)