bugfix: only print the first match when looking for the loglevel

fixes problems with con.c, container.c, config.c
This commit is contained in:
Michael Stapelberg 2010-06-02 22:34:31 +02:00
parent 5bff638ea0
commit bdb1065537
1 changed files with 1 additions and 1 deletions

View File

@ -21,7 +21,7 @@ endif
# Depend on the specific file (.c for each .o) and on all headers
src/%.o: src/%.c ${HEADERS}
echo "CC $<"
$(CC) $(CFLAGS) -DLOGLEVEL="((uint64_t)1 << $(shell awk '/$(shell basename $< .c)/ { print NR }' loglevels.tmp))" -c -o $@ $<
$(CC) $(CFLAGS) -DLOGLEVEL="((uint64_t)1 << $(shell awk '/$(shell basename $< .c)/ { print NR; exit 0; }' loglevels.tmp))" -c -o $@ $<
all: src/cfgparse.y.o src/cfgparse.yy.o src/cmdparse.y.o src/cmdparse.yy.o ${FILES}
echo "LINK i3"