Automatically generate weston.ini with the right paths
[platform/upstream/weston.git] / Makefile.am
1 if BUILD_WCAP_TOOLS
2 wcap_subdir = wcap
3 endif
4
5 SUBDIRS = shared src clients data protocol tests $(wcap_subdir) man
6
7 DISTCHECK_CONFIGURE_FLAGS = --disable-setuid-install
8
9 EXTRA_DIST = weston.ini.in wayland-scanner.mk
10
11 weston.ini : $(srcdir)/weston.ini.in
12         $(AM_V_GEN)$(SED) \
13                 -e 's|@bindir[@]|$(bindir)|g' \
14                 -e 's|@abs_top_builddir[@]|$(abs_top_builddir)|g' \
15                 -e 's|@libexecdir[@]|$(libexecdir)|g' \
16                 $< > $@
17
18 all-local : weston.ini