MAKE=make /* gmake has options which we must drop for make */ override MAKEFLAGS= MFLAGS := $(subst w,,$(MFLAGS)) ifeq ($(strip $(MFLAGS)),-) MFLAGS:= endif ifeq ($(strip $(VERSION)),) VERSION=archive endif .PRECIOUS: archive/tree archive/imake/imake .PRECIOUS: debug/tree debug/imake/imake .PRECIOUS: shared/tree shared/imake/imake %/objects.list: %/lib/libshift.a [ ! -d $(@D) ] && mkdir $(@D) || true cd $(@D)/lib;ar x libshift.a RemoveFile($@) (cd $(@D)/lib;ls *.o | sed -e "s=^.=$(@D)/lib/&=" ) > $@ archive/stamp debug/stamp: $(@D)/tree $(@D)//lib/libshift.a [ ! -d $(@D) ] && mkdir $(@D) || true cd $(@D);ar x lib/libshift.a touch $@ %/tree:: shift.tar [ -d $(@D) ] && rm -rf $(@D) || true echo testing ... tree mkdir $(@D) cp $< $(@D)/$(