1 all: packnl packnl.8 incore.lsp.8 main-args.lsp.8
3 packnl: packnl.lsp incore.lsp main-args.lsp
4 newlisp -x incore.lsp $@
6 echo 'xxxxxxxxxxxxxxxxxxxxxx''xxxxxxxxxxxxxxxxxx' >> $@
7 for F in $^ ; do echo "$$F\n$$(stat -c %s $$F)" ; cat $$F ; done >> $@
10 asciidoctor -b manpage $^
13 rm -f packnl packnl.8 incore.lsp.8
15 # Installation targets
18 MAN8FILES = packnl.8 incore.lsp.8 main-args.lsp.8
19 LSPMODFILES = incore.lsp main-args.lsp
21 BINDIR = $(DESTDIR)/usr/bin
22 MAN8DIR = $(DESTDIR)/usr/share/man/man8
23 LSPMODDIR = $(DESTDIR)/usr/share/newlisp
26 INSTALLTARGETS += $(addprefix $(BINDIR),$(BINFILES))
27 INSTALLTARGETS += $(addprefix $(MAN8DIR)/,$(MAN8FILES))
28 INSTALLTARGETS += $(addprefix $(LSPMODDIR)/,$(LSPMODFILES))
32 $(BINDIR)/% $(MAN8DIR)/% $(LSPMODDIR)/%: %
33 $(INSTALL) -D -T $< $@
35 install: $(INSTALLTARGETS)