Re: Help needed for a beginner
"Isak Savo" <[email protected]>
| Newsgroups | gmane.comp.autopackage.devel |
|---|---|
| Message-ID | <[email protected]> |
2008/1/22, Anjan Santra <[email protected]>: > Hi, > For the last 2 days i have tried to study the "Autopackage package > guide" and the "quick start guide". > > But I could not follow it nor create a sample package. > > I was trying a simple "HELLO WORLD" program. The c code when built and > binary executed simply prints a "hello world!!" on to the screen. > I don't know what should the apspec look like, if default make is OK or > do I need explicit Makefile? > > Any help in any way will be appreciated. > > The Directory structure is like... > HelloWorld (ROOT) > --->autopackage > ------>>default.apspec.in If you are not using autotools ("configure script"), then you should call this file default.apspec instead of default.apspec.in. Your Makefile (in the top directory) should contain the following (at least): # <---- PREFIX=/usr hello: src/hello.c gcc -Wall -g -o hello src/hello.c clean: rm -f hello src/*.o install: hello mkdir -p "$(DESTDIR)$(PREFIX)/bin" cp hello "$(DESTDIR)$(PREFIX)/bin/hello" # ----> Then use the APSpec Generator tool (http://www.autopackage.org/download-tools.html) to create an initial file You will need to edit the [prepare] section and change it from "prepareBuild" to: make make install DESTDIR=$build_root You might get warnings about using apbuild instead of gcc, but that is not important as you are just trying to figure this out.. you can worry about that later. -Isak --------------------------------------------------------------------- To unsubscribe, e-mail: autopackage-dev-unsubscribe-OfajU3CKLf1/[email protected] For additional commands, e-mail: autopackage-dev-help-OfajU3CKLf1/[email protected]