You're getting a jar file because by omission of the <packaging> element, that's what you've asked for.
There's nothing in that makefile that tells it to put anything in your target directory. I'd look for it beside the helloworld.c, wherever that is. > -----Original Message----- > From: bettypop [mailto:yashu....@gmail.com] > Sent: Thursday, April 26, 2012 12:25 AM > To: users@maven.apache.org > Subject: Re: How can I trigger a makefile through Maven? is there any > plugin for this? > > It's not an issue with the makefile, coz' it executes properly when run > independently. It compiles my source file and creates a .exe. > > *This is my makefile*: > all: hello > hello: helloWorld.o > gcc helloWorld.o -o hello > helloWorld.o: helloWorld.c > gcc -c helloWorld.c > clean: > rm -rf *o hello > > > *Now, I want to trigger this makefile through Maven. The compilation > will be > done by the makefile and not Maven. Maven should just trigger it.* > When I run 'mvn install', This is what I see in the target folder: > http://maven.40175.n5.nabble.com/file/n5666817/untitled.bmp > > It creates a .jar file. I am confused! > > -- > View this message in context: http://maven.40175.n5.nabble.com/How-can- > I-trigger-a-makefile-through-Maven-is-there-any-plugin-for-this- > tp5663921p5666817.html > Sent from the Maven - Users mailing list archive at Nabble.com. > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@maven.apache.org > For additional commands, e-mail: users-h...@maven.apache.org ______________________________________________________________________ This message, including any attachments, is confidential and contains information intended only for the person(s) named above. Any other distribution, copying or disclosure is strictly prohibited. If you are not the intended recipient or have received this message in error, please notify us immediately by reply email and permanently delete the original transmission from all of your systems and hard drives, including any attachments, without making a copy. --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org