VDKBuilder Tutorial
STEP 4
Return to Index

In this chapter we learn how to use automake/autoconf support.

In order to have this capability you need:
autoconf version >= 2.13
automake (GNU automake) version >= 1.4

Introduction

Looking into your dir your-home/vdkb-examples/ will see these files:

step3            step3.h        step3.prj.opt    step3_gui.o
step3.cc        step3.o        step3_gui.cc   vdkbMakefile
step3.frm       step3.prj       step3_gui.h     simpson1.xpm

those files are produced by VDKBuilder and are completely useful only if
another VDKBuilder can use them.  In this case is enough if you tar-zip
these files and send them to another user.
Supposing that you want make a package that can be compiled without
VDKBuilder you can use autoconf/automake feature. it prepares a complete
package that can be used and compiled without VDKBuilder.

Preparing packages

Looking into your dir your-home/vdkb-examples/ will see these files:
AUTHORS         README          config.log      stamp-h         step3.prj.opt
COPYING         acconfig.h      config.status*  stamp-h.in      step3_gui.cc
ChangeLog       aclocal.m4      config.sub      step3*          step3_gui.h
INSTALL         autogen.sh*     configure*      step3.cc        step3_gui.o
Makefile        config.cache    configure.in    step3.frm       vdkbMakefile
Makefile.am     config.guess    install-sh      step3.h        simpson1.xpm
Makefile.in     config.h        missing         step3.o            extra_dist.am
NEWS            config.h.in     mkinstalldirs   step3.prj

All these files are necessary for a standard GNU package. Someone is a dummy file,
like AUTHORS,COPYING,README and INSTALL. Writing these files is your job.
Others serve to users in order to compile step3 program.
 

 
To check if the package is complete and working open a xterm and do:

$ cd vdkb-examples
$ mkdir tmp
$ cd tmp
$ cp ../step3-0.0.1.tar.gz .
$ tar xvzf step3-0.0.1.tar.gz
$ cd step3-0.0.1
$ ./configure
$ make
$ ./step3&

you should see step3 program compiled and working without VDKBuilder.
now you can delete tmp dir

$ cd ~/vdkb-examples
$ rm -r tmp/

Tip: version number is by default 0.0.1, to change this number use menu item
Project->Options and edit package version field.