Fixed my last change as it didn't work with target names containing dots

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/tools/make/trunk@9358 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Nicola Pero 2001-03-14 10:43:31 +00:00
parent 0a2d7529c3
commit 8d0408e19a

View file

@ -39,9 +39,9 @@ RULES_MAKE_LOADED=yes
# libgmodel.all.library.variables
#
%.variables:
@(target=$(word 1,$(subst ., ,$*)); \
operation=$(word 2,$(subst ., ,$*)); \
type=$(subst -,_,$(word 3,$(subst ., ,$*))); \
@(target=$(basename $(basename $*)); \
operation=$(subst .,,$(suffix $(basename $*))); \
type=$(subst -,_,$(subst .,,$(suffix $*))); \
$(MAKE) -f $(MAKEFILE_NAME) --no-print-directory --no-keep-going \
TARGET_TYPE=$${type} \
OPERATION=$${operation} TARGET=$${target} \