makefile: don’t pick up autogenerated files

next
Michael Stapelberg 2011-07-11 20:18:38 +02:00
parent f9da0d5ded
commit 036ecba1d1
1 changed files with 2 additions and 1 deletions

View File

@ -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