View Single Post
  #7   Spotlight this post!  
Unread 12-02-2011, 12:51
nikitakit nikitakit is offline
Registered User
FRC #0980 (Thunderbots)
 
Join Date: Feb 2009
Rookie Year: 2009
Location: California
Posts: 9
nikitakit will become famous soon enough
Re: Universal C++ Project - C++ programming for Linux, and more

My best guess at what is happening is that "Makefile" is a default target of sorts, and it gets matched by the wildcards. For some reason, I don't have any problems on my machine. Maybe it's because I have a WindRiver makefile so the "Makefile" target is skipped instead of giving an error.

I think I've finally figured out how to fix it:

Code:
#UCPP makefile

# Default target
all: force
    cd PPC603gnu && exec $(MAKE) -f Makefile_linux

# Don't do anything for the "Makefile" target
Makefile: ;

%: force
    cd PPC603gnu && exec $(MAKE) -f Makefile_linux "$*"

force: ;