Makefile.am: Clean generated weston.ini on make clean
[platform/upstream/weston.git] / Makefile.am
1 if BUILD_WCAP_TOOLS
2 wcap_subdir = wcap
3 endif
4
5 if ENABLE_XWAYLAND
6 xwayland_subdir = xwayland
7 endif
8
9 SUBDIRS =                                       \
10         shared                                  \
11         src                                     \
12         $(xwayland_subdir)                      \
13         desktop-shell                           \
14         clients                                 \
15         data                                    \
16         protocol                                \
17         tests                                   \
18         $(wcap_subdir)                          \
19         man
20
21 DISTCHECK_CONFIGURE_FLAGS = --disable-setuid-install
22
23 EXTRA_DIST = weston.ini.in wayland-scanner.mk
24
25 weston.ini : $(srcdir)/weston.ini.in
26         $(AM_V_GEN)$(SED) \
27                 -e 's|@bindir[@]|$(bindir)|g' \
28                 -e 's|@abs_top_builddir[@]|$(abs_top_builddir)|g' \
29                 -e 's|@libexecdir[@]|$(libexecdir)|g' \
30                 $< > $@
31
32 all-local : weston.ini
33
34 CLEANFILES = weston.ini