[latexila] build: clean generated C files during `make clean`



commit 4b70f5b245aeb2483d9b9b812aa448b53f82a329
Author: Sébastien Wilmet <swilmet gnome org>
Date:   Sun Dec 18 17:38:58 2016 +0100

    build: clean generated C files during `make clean`
    
    Best practice is to use CLEANFILES to clean stuff built by make, and
    DISTCLEANFILES only for stuff built by configure. Everyone has to run
    make and it's very unexpected for 'make clean' to not clean things it
    builds.

 src/Makefile.am |    9 ++++-----
 1 files changed, 4 insertions(+), 5 deletions(-)
---
diff --git a/src/Makefile.am b/src/Makefile.am
index 20ec5ac..ee1821f 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -88,10 +88,6 @@ latexila_LDADD =                     \
        gedit/libgedit.la               \
        liblatexila/liblatexila.la
 
-MAINTAINERCLEANFILES =         \
-       $(vala_files:.vala=.c)  \
-       latexila_vala.stamp
-
 # GResource
 
 latexila-resources.c: latexila.gresource.xml $(shell $(GLIB_COMPILE_RESOURCES) --sourcedir=$(srcdir) 
--generate-dependencies $(srcdir)/latexila.gresource.xml)
@@ -102,6 +98,9 @@ nodist_latexila_SOURCES = $(BUILT_SOURCES)
 
 EXTRA_DIST = latexila.gresource.xml
 
-CLEANFILES = $(BUILT_SOURCES)
+CLEANFILES =                   \
+       $(BUILT_SOURCES)        \
+       $(vala_files:.vala=.c)  \
+       latexila_vala.stamp
 
 -include $(top_srcdir)/git.mk


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]