afm-unit: Simplify the Makefile
[src/app-framework-main.git] / conf / unit / generate-unit-conf / Makefile
1 .PHONY: all
2
3 MAIN = afm-unit
4
5 FILES = $(MAIN) binder.inc provided-api.inc provided-binding.inc service.inc Makefile
6
7 DIR = ..
8
9 D = -DAGL_DEVEL
10
11 all: $(DIR)/afm-unit.conf.in $(DIR)/afm-unit-debug.conf.in
12
13 $(DIR)/afm-unit.conf.in: $(FILES)
14         @echo generating $@
15         @m4 $< | sed '/^[ \t]*\\*[ \t]*$$/d' > $@
16
17 $(DIR)/afm-unit-debug.conf.in: $(FILES)
18         @echo generating $@
19         @m4 $D $< | sed '/^[ \t]*\\*[ \t]*$$/d' > $@
20