make file for Java/Linux

后端 未结 3 2069
日久生厌
日久生厌 2020-12-22 11:56

I have the following makefile after running it once I make some changes to the makefile and now when I run it I get a \"make: Nothing to be done for `default\'.\" How can I

3条回答
  •  忘掉有多难
    2020-12-22 12:30

    The problem is that this:

    .java.class:
        $(JC) $(JFLAGS) $*.java
    

    doesn't do what you think it does. Perhaps you meant something like this?

    %.class: %.java
        $(JC) $(JFLAGS) $^
    

提交回复
热议问题