The situation goes like this...I have to write a program with the executable name 'parser'...it is required to parse something reading from a file 'a.in'....after typing make all...the user should be able to run the program by typing in the command line :
$ parser a.in
'$ ./parser a.in ' is not allowed.
The user will not update the path himself by export (assume he doesn't know that)....

Is there any way I can update the path automatically in the Makefile? If yes , how?

one way I figured out is including the following :

install
mv parser /usr/local/bin

but not all system has /usr/local/bin (my own system has /usr/bin)
also...in all probability....a sudo is required to perform the move...and the user may not be in the sudoers list....

so only way left is somehow assigning the current directory to a variable (say CURDIR) and use

install
export PATH=$PATH:$CURDIR

Any suggestions on how that can be done? or any other suggestion on how this can be achieved?

NB. It's a HW problem, but the main objective was to write the parser...so I hope this is not cheating...