[Top] [Prev] [Next] [Bottom]

5. The STOCKAPP Makefile


A Look at the STOCKAPP Makefile

STOCKAPP includes a makefile that makes all scripts executable, converts the view description file to binary format, and does all the necessary precompiles, compiles and builds to create the application servers. It can also be used to clean up when you want to make a fresh start.

Editing STOCKAPP.mk

As STOCKAPP.mk is delivered there are a few fields you may want to edit, and some others that may benefit from a little explanation.

TUXDIR

If you look at STOCKAPP.mk, you come to the following comment and to the TUXDIR parameter:

#
# Root directory of TUXEDO System. This file must either be edited to set
# this value correctly, or the correct value must be passed via "make -f
# STOCKAPP.mk TUXDIR=/correct/rootdir", or the build of STOCKAPP will fail.
#
TUXDIR=../..

The TUXDIR parameter should be set to the absolute pathname of the root directory of your BEA TUXEDO system installation.

APPDIR

You may want to give some thought to the setting of the APPDIR parameter. As STOCKAPP is delivered, APPDIR is set to the directory where the STOCKAPP files are located, relative to TUXDIR. The section in STOCKAPP.mk is as follows:

#
# Directory where the STOCKAPP application source and executables live.
# This file must either be edited to set this value correctly, or the
# correct value must be passed via "make -f STOCKAPP.mk
# APPDIR=/correct/appdir", or the build of STOCKAPP will fail.
#
APPDIR=$(TUXDIR)/apps/STOCKAPP
#

If you have copied the files to another directory, as is suggested in the README file, you should set this parameter to the name of the directory to which you copied the files. When you run the makefile, the application will be built in this directory.

Running STOCKAPP.mk

When you have completed the changes you wish to make to STOCKAPP.mk, run it with the following command line:

nohup make -f STOCKAPP.mk install &

Check the nohup.out file to make sure the process completed successfully.



[Top] [Prev] [Next] [Bottom]