From 6fe12e7811e0356078b51f028a65cb2fb6c9d71b Mon Sep 17 00:00:00 2001 From: Sam Hocevar Date: Sun, 20 May 2012 12:30:41 +0000 Subject: [PATCH] build: ensure .lolfx.cpp files get cleaned up. --- src/Makefile.am | 2 ++ test/tutorial/Makefile.am | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/Makefile.am b/src/Makefile.am index 48248302..f94d457b 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -50,6 +50,8 @@ nodist_liblol_a_SOURCES = \ gpu/emptymaterial.lolfx.cpp liblol_a_CPPFLAGS = @LOL_CFLAGS@ +CLEANFILES = $(filter %.lolfx.cpp, $(SOURCES)) + SUFFIXES = .lolfx %.lolfx.cpp: %.lolfx echo "/* This file was autogenerated. DO NOT MODIFY IT. */" > $@.tmp diff --git a/test/tutorial/Makefile.am b/test/tutorial/Makefile.am index 1c66943b..101fa113 100644 --- a/test/tutorial/Makefile.am +++ b/test/tutorial/Makefile.am @@ -8,7 +8,8 @@ all-local: $(noinst_PROGRAMS) CLEANFILES = $(noinst_PROGRAMS:%$(EXEEXT)=%.self) \ $(noinst_PROGRAMS:%$(EXEEXT)=%.elf) \ - $(noinst_PROGRAMS:%$(EXEEXT)=%.exe) + $(noinst_PROGRAMS:%$(EXEEXT)=%.exe) \ + $(filter %.lolfx.cpp, $(SOURCES)) SUFFIXES = .lolfx %.lolfx.cpp: %.lolfx