Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

NMAKE problem

Status
Not open for further replies.

brownie124

Programmer
Sep 19, 2002
61
US
This isn't a C++ problem really but I thought someone here would know the answer. I have manually created a makefile to actually compile java applications. However, it will only compile the first one and nothing more. Here is an example of the make file:
Code:
PREFIX=foo
$(PREFIX).class: $(PREFIX).java
	javac $(PREFIX).java

PREFIX=foo1
$(PREFIX).class: $(PREFIX).java
	javac $(PREFIX).java
The first one compiles fine, but the second one doesn't compile at all. I don't receive any errors or anything, nmake just seems to stop.

Thanks,
- Brownie
 
In my opinion you can not redefine a macro
PREFIX=foo
....
PREFIX=foo1


Ion Filipski
1c.bmp

ICQ: 95034075
AIM: IonFilipski
filipski@excite.com
 
by the way, how do you try to compille the second target?

Ion Filipski
1c.bmp

ICQ: 95034075
AIM: IonFilipski
filipski@excite.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top