Re: Help needed for a beginner
Anjan Santra <[email protected]>
| Newsgroups | gmane.comp.autopackage.devel |
|---|---|
| Message-ID | <[email protected]> |
Hi Isak, Thanks for your reply. I made the changes as suggested by you. I also did "export build_root=/home/anjan/helloWorld_INSTALL" (its same for DESTDIR) I want the package to go there. If I run make and make-install, it works fine, but /if I run "makepackage" the folder pointed to by build_root is simply removed/. Now what is it that I am doing wrong? Please tell me. Thanks for your time and help Anjan Isak Savo wrote: > 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] >