[rt-devel] 2.1.39: Makefile notes

Stanislav Sinyagin ssinyagin at yahoo.com
Fri Oct 11 07:35:58 EDT 2002


Hi all, 

There's a problem in Makefile which has to be handled in 
the future release:

First, it defines the config location:

CONFIG_FILE_PATH	=	/opt/rt3/etc
CONFIG_FILE		= 	$(CONFIG_FILE_PATH)/RT_Config.pm

Then, it uses the configfile from TARGET directory to get the 
parameters:

GETPARAM		=	$(PERL) -e'require "$(CONFIG_FILE)"; print $${$$RT::{$$ARGV[0]}};'
...
RT_PATH			=	`$(GETPARAM) "BasePath"`
etc...

And after that, it copies the configfile from SOURCE to TARGET:
config-install:
	mkdir -p $(DESTDIR)/$(CONFIG_FILE_PATH)	
	cp etc/RT_Config.pm $(DESTDIR)/$(CONFIG_FILE)
...

As a result, you have to have two identical files both in 
local etc/ and in target installation directories, in order to 
let "make install" finish correctly.

In addition, DB_DBA and DB_DBA_PASSWORD are taken from config file, 
though I believe it's not the proper place to keep that data. 

What about getting use of autoconf/automake? 
They work fine with perl programs. After I spent 2 days on them, 
they look pretty friendly to me. 
Here's the project where I successfully used them:
http://rrfw.sourceforge.net

With regards, 
Stan






__________________________________________________
Do you Yahoo!?
Faith Hill - Exclusive Performances, Videos & More
http://faith.yahoo.com



More information about the Rt-devel mailing list