]> git.sur5r.net Git - i3/i3/commitdiff
makefile: bugfix: filter out auto-generated files
authorMichael Stapelberg <michael@stapelberg.de>
Mon, 11 Jul 2011 17:30:26 +0000 (19:30 +0200)
committerMichael Stapelberg <michael@stapelberg.de>
Mon, 11 Jul 2011 17:30:26 +0000 (19:30 +0200)
Makefile

index e35019e6e9857f6149a2668b94835b3a32f1cc28..9774eff8e9b40ea33035ee1936f80eee273b074e 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -4,7 +4,7 @@ include $(TOPDIR)/common.mk
 
 # Depend on the object files of all source-files in src/*.c and on all header files
 AUTOGENERATED:=src/cfgparse.tab.c src/cfgparse.yy.c src/cmdparse.tab.c src/cmdparse.yy.c
-FILES:=$(wildcard src/*.c)
+FILES:=$(filter-out $(AUTOGENERATED),$(wildcard src/*.c))
 FILES:=$(FILES:.c=.o)
 HEADERS:=$(filter-out include/loglevels.h,$(wildcard include/*.h))