How to read arguments to make command

In the make file

update updateq:
-------------------
----------

i want the makefile to display some messages when user gives "make update", but totally quite wehn user enters "make updateq". Can u tell me how to read these argument in makefile.
$1 doesnt work:(

GNU make has $(MAKECMDGOALS) but I don't think that's portable.

Why don't you write two different goals for update and updateq?

its because most of the code is same. Just a 2 messages on screen. if i write two goals that will mean duplicating the whole code minus those two statement.

I triesd.. $@ works but then i only need to check the first argument

So how about running make -s versus running just make? If the verbosity is really the only difference.

As a purely theoretical remark, it's valid to say make update updateq although of course resolving the paradox isn't exactly a critical issue for you I guess.