Java Makefile: how to dynamically compile files inside packages -


I have a lot of files I need to compile that are inside 2 directories, Would like to find the self?

All the tutorials I found on the Internet tell me how to do this in other directories not in the current directory. I currently have the code present:

  JFLAGS = -g JC = javac # clear default goal. Ufix: Java. Class # compilation files .java.class: $ (jc) $ (JFLAGS) $ *. Java # Directories to see java files package: = \ core \ card \ # Start classes with main classes Classes: = main.java # I have no clue how this works, but no one can do this to me Asked for. .PHONY: Default clean $ (package) # All Java files should be added to $$ (package): $ (eval Classes: $$ (classes) $@/*.java) # Call Source Builder and Compiler Default: $ ( Package) Classes # compiler for each file category: $ (classes: java = .class) clean: $ (foreign exchange dir, $ (package), $ ($ (rm $ / dir) *). )  

As you can see, I tried to reach the directories through walking and rules The following does not work any of those methods.

Clear gives me is not done to clean anything and create me core Even though the core is full of Java files and a class

how can I fix it?

The base messay file I used can be found at

Used shell for:

  JFLAGS = -g JC = javac .UFFIXES: .java .class .java.class: $ (Jesse) $ (JFALGS) $ *. Jav one package: = \. \ Core \ card \ card / abstract \ classes: Type $ (shell $ $ (packages) type f -name '* .java') .Phone: default clean default: classes classes: $ (classes: .java = Class) Clear: $ (rm) $ (shell $ $ (packages) -type f -name '* .class')  

Comments

Popular posts from this blog

winforms - C# Form - Property Change -

java - Messages from .properties file do not display UTF-8 characters -

javascript - amcharts makechart not working -