From ec5b4508cc17e81153a6f5625794ab36f009d9ab Mon Sep 17 00:00:00 2001 From: Werner Lemberg Date: Sun, 10 Dec 2006 07:51:38 +0000 Subject: [PATCH] * builds/toplevel.mk (version): Protect against `distclean' target. --- ChangeLog | 4 ++++ builds/toplevel.mk | 3 ++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index dd84b19e3..0cd1e6327 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2006-12-10 Werner Lemberg + + * builds/toplevel.mk (version): Protect against `distclean' target. + 2006-12-09 Werner Lemberg * builds/*/*def.mk, builds/*/detect.mk (CAT): Define to either `cat' diff --git a/builds/toplevel.mk b/builds/toplevel.mk index f8306a03b..d5ca530a3 100644 --- a/builds/toplevel.mk +++ b/builds/toplevel.mk @@ -163,7 +163,8 @@ include $(TOP_DIR)/builds/modules.mk # 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))