#  In order to create the developers' documentation from the pod notes
#  in the program files, we need to know:
#      HTMLROOT -- The base URL for the developer documents directory.
#      DOCSDIR -- The full local path to the developer documents directory.

#  The KEYSTONEROOT is the base URL of the entire Keystone installation.
#  HTMLROOT is created from this.
KEYSTONEROOT = http://www.SilberSoft.com/keystone

#  This is the local path for the developer documents directory.
DOCSDIR = /opt/keystone/docs/devel


#  From here down, no changes should be needed.
HTMLROOT = $(KEYSTONEROOT)/docs/devel

PODOPTS = --libpods=utils --podpath=. --htmlroot=$(HTMLROOT)

TARGETS = keycli.html Keystone.html SlipList.html Slip.html People.html Status.html Utilities.html

all: dir $(TARGETS)

dir:
	if [ ! -d $(DOCSDIR) ] ; then mkdir $(DOCSDIR) ; fi

%.html : %.pl
	pod2html $(PODOPTS) $< > $@
	cp $@ $(DOCSDIR)

%.html : %.pm
	pod2html $(PODOPTS) $< > $@
	cp $@ $(DOCSDIR)

clean:
	rm -f *~ $(TARGETS)

distclean: clean
	rm -f pod2html-*  *~
