[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Updating local makefile
From: |
Greg Chicares |
Subject: |
Re: Updating local makefile |
Date: |
Mon, 02 Feb 2004 23:33:39 -0500 |
Tristan Van Berkom wrote:
>
> So I got this broken rule...
>
> hidden at the end of all the auto-build/auto-distribute scripts
> embedded in the master toplevel makefile; I have the following rule:
> ####################################################
> $(CURDIR)/Makefile:$(CURDIR)/globalconfig/Makefile
> @echo -n "Updating address@hidden "
> @cp -f $< $@
> @echo "Done."
> ####################################################
>
> And for some reason it just doesn't work.
This is what happens if I try that here.
C:/tmp[3]$make -f Makefile
c:\usr\bin\make.EXE: *** No rule to make target
`C:/tmp/globalconfig/Makefile',
needed by `C:/tmp/Makefile'. Stop.
Does the subdirectory exist?
C:/tmp[2]$mkdir globalconfig
C:/tmp[0]$make -f Makefile
c:\usr\bin\make.EXE: *** No rule to make target
`C:/tmp/globalconfig/Makefile',
needed by `C:/tmp/Makefile'. Stop.
Does the makefile exist in the subdirectory?
C:/tmp[2]$touch globalconfig/Makefile
C:/tmp[0]$make -f Makefile
Updating C:/tmp/Makefile... Done.
> (I thought that all makefiles were goal targets).
But remaking them may fail.