From: Michael Stapelberg Date: Mon, 11 Jul 2011 18:18:38 +0000 (+0200) Subject: makefile: don’t pick up autogenerated files X-Git-Tag: tree-pr4~19 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=036ecba1d155fdf82d50a17a60727b2b17e458f2;p=i3%2Fi3 makefile: don’t pick up autogenerated files --- diff --git a/i3-config-wizard/Makefile b/i3-config-wizard/Makefile index f0073455..07d6484d 100644 --- a/i3-config-wizard/Makefile +++ b/i3-config-wizard/Makefile @@ -4,7 +4,8 @@ TOPDIR=.. include $(TOPDIR)/common.mk # Depend on the object files of all source-files in src/*.c and on all header files -FILES:=$(patsubst %.c,%.o,$(wildcard *.c)) +AUTOGENERATED:=cfgparse.tab.c cfgparse.yy.c +FILES:=$(patsubst %.c,%.o,$(filter-out $(AUTOGENERATED),$(wildcard *.c))) HEADERS:=$(wildcard *.h) # Depend on the specific file (.c for each .o) and on all headers