makefile: don’t pick up autogenerated files

This commit is contained in:
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 include $(TOPDIR)/common.mk
# Depend on the object files of all source-files in src/*.c and on all header files # 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) HEADERS:=$(wildcard *.h)
# Depend on the specific file (.c for each .o) and on all headers # Depend on the specific file (.c for each .o) and on all headers