User:Timothee Flutre/Notebook/Postdoc/2012/11/27
From OpenWetWare
(Difference between revisions)
(→How to make a GNU package?: add files requested by GNU) |
(→How to make a GNU package?: add autotools info) |
||
| Line 10: | Line 10: | ||
* find a name for the package | * find a name for the package | ||
| - | * | + | * structure the package directory: |
touch README INSTALL NEWS AUTHORS COPYING ChangeLog | touch README INSTALL NEWS AUTHORS COPYING ChangeLog | ||
| - | mkdir src doc test lib | + | mkdir src build-aux doc test #lib |
| - | * populate the < | + | * populate the <code>src/</code> directory with your code, e.g. <code>hello.cpp</code> |
| - | * use Autotools ([http://www.lrde.epita.fr/~adl/autotools.html | + | * use [http://en.wikipedia.org/wiki/GNU_build_system Autotools] (see [http://www.lrde.epita.fr/~adl/autotools.html tutorial]): |
| + | ** write the files <code>configure.ac</code> and <code>Makefile.am</code> | ||
| + | ** 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 | ||
| + | |||
| + | * share your code, for instance on [http://en.wikipedia.org/wiki/GitHub GitHub] (see [http://openwetware.org/wiki/User:Timothee_Flutre/Notebook/Postdoc/2012/08/14 my tips]) | ||
<!-- ##### DO NOT edit below this line unless you know what you are doing. ##### --> | <!-- ##### DO NOT edit below this line unless you know what you are doing. ##### --> | ||
Revision as of 22:49, 27 November 2012
Main project page Previous entry
| |
How to make a GNU package?
touch README INSTALL NEWS AUTHORS COPYING ChangeLog mkdir src build-aux doc test #lib
autoreconf --install ./configure #can be followed by --prefix=... or LDFLAGS=... make make check make install make distclean make dist
| |



