chiark / gitweb /
build-sys: remove vala generated sources only when valac is around
[elogind.git] / Makefile.am
index 65ab133..e6366dd 100644 (file)
@@ -335,9 +335,6 @@ units/session/%: units/%.m4 Makefile
        $(M4_PROCESS_SESSION)
 
 CLEANFILES = \
-       src/systemd-interfaces.c \
-       src/systemctl.c \
-       src/systemadm.c \
        units/systemd-initctl.service \
        units/systemd-logger.service \
        units/syslog.target \
@@ -350,6 +347,13 @@ CLEANFILES = \
        man/systemd.special.7 \
        man/systemd.special.html
 
+if HAVE_VALAC
+CLEANFILES += \
+       src/systemd-interfaces.c \
+       src/systemctl.c \
+       src/systemadm.c
+endif
+
 if HAVE_XSLTPROC
 XSLTPROC_PROCESS_MAN = \
        $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \