ref: ec5b4508cc17e81153a6f5625794ab36f009d9ab
parent: b26b314a9357ddb4a4819c36a59313d076396cea
author: Werner Lemberg <[email protected]>
date: Sun Dec 10 02:51:38 EST 2006
* builds/toplevel.mk (version): Protect against `distclean' target.
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2006-12-10 Werner Lemberg <[email protected]>
+
+ * builds/toplevel.mk (version): Protect against `distclean' target.
+
2006-12-09 Werner Lemberg <[email protected]>
* builds/*/*def.mk, builds/*/detect.mk (CAT): Define to either `cat'
--- a/builds/toplevel.mk
+++ b/builds/toplevel.mk
@@ -163,7 +163,8 @@
# Not to be run by a normal user -- there are no attempts to make it
# generic.
-ifneq ($(findstring dist,$(MAKECMDGOALS)),)
+# we check for `dist', not `distclean'
+ifneq ($(findstring distx,$(MAKECMDGOALS)x),)
FT_H := include/freetype/freetype.h
major := $(shell sed -n 's/.*FREETYPE_MAJOR.*\([0-9]\+\)/\1/p' < $(FT_H))