![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Rules & FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts here. |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Sun Java Platform, Standard Edition 6u6 (Java 6 branch) | iBot | Software Releases - RSS News | 0 | 04-26-2008 01:10 AM |
| Sun Java Platform, Standard Edition 1.5.0_15 (Java 5 branch) | iBot | Software Releases - RSS News | 0 | 03-06-2008 01:50 PM |
| Sun Java Platform, Standard Edition 6u5 (Java 6 branch) | iBot | Software Releases - RSS News | 0 | 03-06-2008 01:50 PM |
| Using Subversion, NetBeans IDE, and Sun Java System Web Server With Java ME | iBot | UNIX and Linux RSS News | 0 | 02-01-2008 01:00 PM |
| Sun Java Platform, Standard Edition 6u4 (Java 6 branch) | iBot | Software Releases - RSS News | 0 | 01-14-2008 03:40 PM |
|
|
LinkBack | Thread Tools | Display Modes |
|
|||
|
java Makefile
Ive been trying to write a simple Makefile to compile *.java files to *.class files that reside in different directories.
[code] -- main_dir ----subdir1 -----subdir2 [code] here's my Makefile. it wont run what should i do? thanks for all the help! Code:
JAVAC = javac
JFLAGS =
SUBDIRS = main_dir subdir1 subdir2
all:
@@for file in $(SUBDIRS); do
$(JAVAC) $(JFLAGS) *.java
done
|
| Forum Sponsor | ||
|
|
|
|||
|
If my understanding is correct, each command is taken as one single line, so you need to write the loop as if on a single line.
Maybe you try this: Code:
JAVAC = javac
JFLAGS =
SUBDIRS = main_dir subdir1 subdir2
all:
@@for file in $(SUBDIRS); do \
$(JAVAC) $(JFLAGS) *.java; \
done
If you still have problems running it, please don't forget to post the error message to help others help you. Why don't you use Ant (http://ant.apache.org)? |