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

From OpenWetWare

Jump to: navigation, search
Project name Main project page
Previous entry      

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


Personal tools