From 5fbcf54fc2eb635492906b884db5c379ce99bcb7 Mon Sep 17 00:00:00 2001 From: midipix Date: May 16 2016 00:14:32 +0000 Subject: build system: remove generic dependency on version.tag. Since git-status touches several files (including .git/index), a generic object file dependency on version.tag means that all objects get recompiled whenever git-status is invoked. This patch works around this problem at the cost of ad-hoc dependency rules for specific objects. --- diff --git a/Makefile.in b/Makefile.in index 9f87f7f..962fab4 100644 --- a/Makefile.in +++ b/Makefile.in @@ -95,10 +95,10 @@ include $(PROJECT_DIR)/project/overrides.mk $(APP_SRCS:%.c=%.o): CFLAGS_STATIC = $(CFLAGS_APP) -src/%.lo: $(PROJECT_DIR)/src/%.c $(ALL_HEADERS) host.tag tree.tag version.tag +src/%.lo: $(PROJECT_DIR)/src/%.c $(ALL_HEADERS) host.tag tree.tag $(CC) -c -o $@ $< $(CFLAGS_SHARED) -src/%.o: $(PROJECT_DIR)/src/%.c $(ALL_HEADERS) host.tag tree.tag version.tag +src/%.o: $(PROJECT_DIR)/src/%.c $(ALL_HEADERS) host.tag tree.tag $(CC) -c -o $@ $< $(CFLAGS_STATIC) lib/%$(OS_LIB_SUFFIX)$(VER_XYZ):