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