[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Problem regenerating file removed by rule [solved]

From: Darren Hiebert (Contractor)
Subject: Re: Problem regenerating file removed by rule [solved]
Date: Mon, 11 Apr 2005 13:16:38 -0500 (CDT)

I have solved my problem. The problem was that I made
sub/Makefile.SH an order-only prerequisite of sub/, which
circumvented the execution of the command for sub/ when its
dependency (sub/Makefile.SH) was out of date. By simply removing the
'|' and making it a normal prerequisite, everything now works as

Thank you for your help.

On Wed, 6 Apr 2005, I wrote:

-------------- Begin Makefile -------------
# I have no control over this action, performed by a third party compiler
define third_party_compiler
        rm -fr sub
        mkdir -p sub
        touch sub/Makefile.SH
echo 'if [ ! -f ]; then echo " missing"; exit 1; fi' >> sub/Makefile.SH
        echo '. ./' >> sub/Makefile.SH
        echo 'echo "default: ; touch final" >>Makefile' >> sub/Makefile.SH
        touch $@

sub/final: sub/Makefile
        $(MAKE) -C $(<D)

sub/Makefile: sub/Makefile.SH sub/
        cd $(<D) && sh Makefile.SH

sub/ | sub/Makefile.SH
        touch $@

sub/Makefile.SH: epr ;

epr: source

        touch $@

        rm -f epr source
        rm -fr sub

-------------- End Makefile -------------

Darren Hiebert
Phone: 256-964-5830
Pager: 877-214-3485
XonTech Systems
Missle Defense Division
Northrop Grumman Mission Systems

reply via email to

[Prev in Thread] Current Thread [Next in Thread]