Nick Patavalis wrote:
%.suffix2: %.suffix1
       cp $< $@

Well, you get no targets because you have specified *no targets*! You
never indicated to Make *what* you want to build. If you say:

   $ make test1.suffix2

it will work. In the makefile you simply indicated that: "If you need
a .suffix2 file, then you can make it from the corresponding .suffix1
file like this". But you never said what you want to make.

OK I see. So what should I add to the makefile to tell make to create a .suffix2 file for each .suffix1 file? I have tried the following but it doesn't seem to work:

.PHONY: main

main: $(wildcard *.suffix2)

%.suffix2: %.suffix1
        cp $< $@


August


_______________________________________________
Help-make mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/help-make

Reply via email to