From 2a5850591c308cf78ba1e77f5dc07c357de18ed7 Mon Sep 17 00:00:00 2001 From: Werner Almesberger Date: Fri, 20 Aug 2010 14:26:35 -0300 Subject: [PATCH] version.h is no longer generated and it thus only creates confusion if we create it when making dependencies. - fw/common/Makefile.common (depend): don't touch version.h - fw/common/Makefile.common (version): we build version.c, not version.c --- fw/common/Makefile.common | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fw/common/Makefile.common b/fw/common/Makefile.common index 4abb04d..f7779f3 100644 --- a/fw/common/Makefile.common +++ b/fw/common/Makefile.common @@ -42,7 +42,7 @@ all: $(MAIN).bin # ----- automatic build version information ----------------------------------- -version version.h: +version version.c: @if [ -f .version ]; then \ v=`cat .version`; \ expr $$v + 1 >.version; \ @@ -83,7 +83,7 @@ $(MAIN).ihx: $(OBJS:%=%.rel) depend .depend: >.depend - touch version.h version.c + touch version.c for n in $(OBJS:%=%.c); do \ $(CPP) $(CFLAGS) -DUART_115200_BPS -MM -MG \ `[ -f $$n ] || echo ../common/`$$n >>.depend || \