X-Git-Url: https://git.rrq.au/?a=blobdiff_plain;f=Makefile;h=1b32ebc1f59a2c274061e4c67ae8a88d656db3a4;hb=fa2637324868c9f23ac700635ae54633290aad9f;hp=1c3e94c4473edd3801da0cf73c2c57af97005496;hpb=121167c737403e2f49231fd5704aae86850b5b38;p=rrq%2Flsp-utils.git diff --git a/Makefile b/Makefile index 1c3e94c..1b32ebc 100644 --- a/Makefile +++ b/Makefile @@ -1,18 +1,36 @@ +# Building archives and the test? apps -LSPSRC = lsp-dbus-test.lsp +default: .archives -## Library -LSPLIB = lsp-dbus.a +#################### +SUBDIR = $(dir $(wildcard */Makefile)) -LSP_MISC = foop.lsp misc.lsp -LSPLIBSRC += $(addprefix lsp-misc/,${LSP_MISC}) +.PHONY: .archives +.archives: + @for D in ${SUBDIR} ; do $(MAKE) -C $$D ; done -LSP_DBUS = lsp-dbus-connection.lsp lsp-dbus.lsp lsp-dbus-marshal.lsp -LSP_DBUS += lsp-dbus-events.lsp -LSPLIBSRC += $(addprefix lsp-dbus/,${LSP_DBUS}) +.PHONY: .clean +.clean: + for D in ${SUBDIR} ; do $(MAKE) -C $$D clean ; done -test0: lsp-dbus-test.lsp ${LSPLIB} - ${HOME}/src/borta/packnl/packnl -w $@ $^ -A ${LSPLIB} +%.8: %.8.adoc + asciidoctor -b manpage $< + +#################### +PACKNL = ${HOME}/src/borta/packnl/packnl +define PACKNLACTION +${PACKNL} -w $@ $< ${EXTRA} $(addprefix -A ,$(wordlist 2,1000,$^)) +endef + +test0: lsp-misc/lsp-misc.a lsp-dbus/lsp-dbus.a +test0: lsp-dbus-test.lsp + ${PACKNLACTION} + +test1: EXTRA = ex2.conf +test1: lsp-alsa/lsp-pcm-dispatch.a lsp-alsa/lsp-libasound.a +test1: lsp-alsa-test.lsp lsp-misc/lsp-misc.a + ${PACKNLACTION} + +clean: .clean + rm -f test0 test1 -${LSPLIB}: ${LSPLIBSRC} - ar r $@ $^