path: root/Makefile
diff options
authorRich Felker <>2013-12-04 18:00:19 -0500
committerRich Felker <>2013-12-04 18:00:19 -0500
commitae71a43b02b2f672b47d305f4d15a9011756e301 (patch)
tree2e00104657f3d58dc5c9768d9632ca9dbf8147aa /Makefile
parentb054137a640c7fd0acb6cc9c4edda055465b15be (diff)
remove dependency of version.h on .git/* to avoid errors
the wildcard function in GNU make includes dangling symlinks; if any exist under the .git directory, they would get added as dependencies, causing make to exit with an error due to lacking a rule to build the missing file. as far as I can tell, git operations which should force version.h to be rebuilt must all touch the mtime of the top-level .git directory.
Diffstat (limited to 'Makefile')
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 69ab304b..0ab0bfdd 100644
--- a/Makefile
+++ b/Makefile
@@ -80,7 +80,7 @@ include/bits/ include/bits
include/bits/alltypes.h: include/bits/ include/ tools/mkalltypes.sed
sed -f tools/mkalltypes.sed include/bits/ include/ > $@
-src/internal/version.h: $(wildcard VERSION .git .git/*)
+src/internal/version.h: $(wildcard VERSION .git)
printf '#define VERSION "%s"\n' "$$(sh tools/" > $@
src/internal/version.lo: src/internal/version.h