User:Timothee Flutre/Notebook/Postdoc/2012/11/27

From OpenWetWare
Revision as of 19:49, 27 November 2012 by Timothee Flutre (talk | contribs) (→‎How to make a GNU package?: add autotools info)
Jump to navigationJump to search
Project name <html><img src="/images/9/94/Report.png" border="0" /></html> Main project page
<html><img src="/images/c/c3/Resultset_previous.png" border="0" /></html>Previous entry<html>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</html>

How to make a GNU package?

  • find a name for the package
  • structure the package directory:
touch README INSTALL NEWS AUTHORS COPYING ChangeLog
mkdir src build-aux doc test #lib
  • populate the src/ directory with your code, e.g. hello.cpp
  • use Autotools (see tutorial):
    • write the files configure.ac and Makefile.am
    • run the tool (repeat until there is no error anymore):
autoreconf --install
./configure #can be followed by --prefix=... or LDFLAGS=...
make
make check
make install
make distclean
make dist
  • write some documentation