Quoting Paul Smith:

I don't quite understand what you're trying to do here.  Why do you
always want to delete the single default goal, regardless of what was
built?

You are right Paul, the clean recipe does not make sense anymore—it only removes target1. I thought I can use .DEFAULT_GOAL to write generic (clean) recipes.

My solution is now:

ALL_TARGETS: target1 target2

...

clean:
    rm $(ALL_TARGETS)

Gökçe



_______________________________________________
Help-make mailing list
Help-make@gnu.org
https://lists.gnu.org/mailman/listinfo/help-make

Reply via email to