aboutsummaryrefslogtreecommitdiffstats
path: root/conf/unit/generate-unit-conf/Makefile
blob: 51cb9c8101957ef3bf4a0fe235437e937e719174 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
.PHONY: all

MAIN = afm-unit

FILES = $(MAIN) $(shell ls *.inc) Makefile

DIR = ..

D = -DAGL_DEVEL

all: $(DIR)/afm-unit.conf.in $(DIR)/afm-unit-debug.conf.in

$(DIR)/afm-unit.conf.in: $(FILES)
	@echo generating $@
	@m4 $< | sed '/^[ \t]*\\*[ \t]*$$/d' > $@

$(DIR)/afm-unit-debug.conf.in: $(FILES)
	@echo generating $@
	@m4 $D $< | sed '/^[ \t]*\\*[ \t]*$$/d' > $@