Need Help with Netpbm Commands

Hello,
for school i have to write a makefile in unix which have to do the following:
-convert all .jpeg files to .png files
-with "all" its ment all in the same folder of the make file
-iam not allowed to use the "convert" command
-no loops allowed like "for" or something (hope i named that right..)

iam still a newb at unix and iam allready freakin out :frowning:

so far i know that i have to use jpegtopng command but i dont know how to do it that the names of the output files are exactly as the input names. and i also dont know how to do it for all files in the same directory/folder where the make file is...

i realy hope anyone of u can help me out with this :S

Greetings, Deadwalk

PS: Sorry for that horrible english but that all ive got :slight_smile:

Do not post classroom or homework problems in the main forums. Homework and coursework questions can only be posted in this forum under special homework rules.

Please review the rules, which you agreed to when you registered, if you have not already done so.

More-than-likely, posting homework in the main forums has resulting in a forum infraction. If you did not post homework, please explain the company you work for and the nature of the problem you are working on.

If you did post homework in the main forums, please review the guidelines for posting homework and repost.

Thank You.

The UNIX and Linux Forums.