diff options
author | midipix <writeonce@midipix.org> | 2016-05-15 20:07:41 -0400 |
---|---|---|
committer | midipix <writeonce@midipix.org> | 2016-05-15 21:15:30 -0400 |
commit | 8d8b0119d6051ad4c54e37c9b928d52adcb700d6 (patch) | |
tree | 9b518689bbdf1f988a82412777d043574d47739e | |
parent | 000e5eca5ae21f0f0cbc64cb666fb63e09f6e69b (diff) | |
download | dalist-8d8b0119d6051ad4c54e37c9b928d52adcb700d6.tar.bz2 dalist-8d8b0119d6051ad4c54e37c9b928d52adcb700d6.tar.xz |
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.
-rw-r--r-- | Makefile.in | 4 |
1 files changed, 2 insertions, 2 deletions
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): |