recovered
[rrq/lsp-utils.git] / Makefile
1 # Building archives and the test? apps
2
3 default: .archives
4
5 ####################
6 SUBDIR = $(dir $(wildcard */Makefile))
7
8 .PHONY: .archives
9 .archives:
10         @for D in ${SUBDIR} ; do $(MAKE) -C $$D ; done
11
12 .PHONY: .clean
13 .clean:
14         for D in ${SUBDIR} ; do $(MAKE) -C $$D clean ; done
15
16 %.8: %.8.adoc
17         asciidoctor -b manpage $<
18
19 ####################
20 PACKNL = ${HOME}/src/borta/packnl/packnl
21 define PACKNLACTION
22 ${PACKNL} -w $@ $< ${EXTRA} $(addprefix -A ,$(wordlist 2,1000,$^))
23 endef
24
25 test0: lsp-misc/lsp-misc.a lsp-dbus/lsp-dbus.a
26 test0: lsp-dbus-test.lsp
27         ${PACKNLACTION}
28
29 test1: EXTRA = ex2.conf
30 test1: lsp-alsa/lsp-pcm-dispatch.a lsp-alsa/lsp-libasound.a
31 test1: lsp-alsa-test.lsp lsp-misc/lsp-misc.a
32         ${PACKNLACTION}
33
34 clean: .clean
35         rm -f test0 test1
36