On Thu, 2008-09-04 at 12:01 -0500, Peng Yu wrote: > I used the following to test if the the goal is 'all'. Now, I want to > test whether it is either 'all' or 'o'. I'm wondering how to do it in > makefile. > > ifeq ($(MAKECMDGOALS), all)
ifneq (,$(filter all o,$(MAKECMDGOALS))) There are also $(and ...) and $(or ...) for more complicated things. See the GNU make manual. _______________________________________________ Help-make mailing list [email protected] http://lists.gnu.org/mailman/listinfo/help-make
