XCOMM $Xorg: Imakefile,v 1.3 2000/08/17 19:54:56 cpqbld Exp $

#ifndef CgiBinDir
#define CgiBinDir /files/web/cgi-bin
#endif
#ifndef ProxyManager
#define ProxyManager tcp/www.x.org:6500
#endif
#ifndef WinCenterHost
#define WinCenterHost windy.osf.org
#endif

    CGIBINDIR = CgiBinDir
    PROXYMNGR = ProxyManager
    WINCENTERHOST = WinCenterHost

#define PerlTarget(name)						@@\
all:: name.pl								@@\
									@@\
name.pl: name								@@\
	m4 -DCGIBINDIR="$(CGIBINDIR)" -DXPROJECT_ROOT="$(PROJECTROOT)" -DXPROXYMNGR="$(PROXYMNGR)" -DWINCENTERHOST="$(WINCENTERHOST)" name >$@ @@\
InstallProgramWithFlags(name.pl,CgiBinDir,$(INSTBINFLAGS))

PerlTarget(bitmap)
PerlTarget(dtcm)
PerlTarget(excel)
PerlTarget(xclock)
PerlTarget(xload)

InstallProgramWithFlags(dtcm.sh,CgiBinDir,$(INSTBINFLAGS))

clean::
	$(RM) *.pl
