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

MAIN = afm-unit

FILES = $(MAIN) binder.inc provided.inc service.inc Makefile

DIR = ..

#AFM_CONFIG_DIR ?= /etc/afm
AFM_CONFIG_DIR ?= "@afm_confdir@"

C = -DAFM_CONFIG_DIR=$(AFM_CONFIG_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 $C $< | sed '/^[ \t]*\\*[ \t]*$$/d' > $@

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