########################################################################
#
# (C) 1995, 1996, 1997 kir@iitb.fhg.de
#
########################################################################
include .version

prefix =~/tools/clig-$(VERSION)
exec_prefix =$(prefix)

# Directory in which to install the program clig
BINDIR =$(exec_prefix)/bin

# Directory in which to install scripts sourced in by clig
TCLSRCDIR =$(prefix)/tcl

# Directory in which to install C-template files
CTMPLDIR =$(prefix)/c

# Directory in which to install manual entries
MANDIR =$(prefix)
MAN1DIR =$(MANDIR)/man1

# Directory were to put release notes, changeLogs, News etc.
DOCDIR =$(prefix)/doc

## Directory where to install soft links to executables and manual
## pages which relief users from adding yet another directory to their
## PATH and MANPATH environments. The directory given must contain
## subdirectories called bin, man/man1, man/man3 and man/mann in order
## for the install script to generate the soft link.
## This is actually only useful, if prefix is not set to s.th. like
## /usr/local, but rather to a path not yet existing in the system.
## If LROOT points to a nonexisting directory, no soft links are created.
LROOT =~/tools

######################################################################## 
#
# You shouldn't normally need to edit anything below
#
########################################################################

install:
	@export VERSION \
                BINDIR TCLSRCDIR CTMPLDIR MAN1DIR DOCDIR LROOT; \
	VERSION="$(VERSION)" \
	VERDATE="$(VERDATE)" \
	BINDIR="$(BINDIR)"; \
	TCLSRCDIR="$(TCLSRCDIR)"; \
	CTMPLDIR="$(CTMPLDIR)"; \
	MAN1DIR="$(MAN1DIR)"; \
	DOCDIR="$(DOCDIR)"; \
	LROOT="$(LROOT)"; \
	./install.csh

rpm:
	ship -F -e clig.spec -d ~/rpm/SOURCES/
	cd ~/rpm; rpm -tb --buildarch noarch SOURCES/clig-${VERSION}.tar.gz
