Skip to content

Commit

Permalink
Added programmer's documentation.
Browse files Browse the repository at this point in the history
--HG--
extra : convert_revision : svn%3A30ab2afb-5f51-4bfe-ae8b-bcb573c66ba7/trunk%4036
  • Loading branch information
evaleev committed Dec 5, 2003
1 parent bfb3258 commit db8ef0f
Show file tree
Hide file tree
Showing 10 changed files with 166 additions and 3 deletions.
3 changes: 3 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@ ifndef DODEPEND
DODEPENDOPT = "DODEPEND=no"
endif

doc::
(cd doc && $(MAKE) $(DODEPENDOPT) install) || exit 1;

install::
for dir in $(SUBDIRS); \
do \
Expand Down
6 changes: 5 additions & 1 deletion configure.in
Original file line number Diff line number Diff line change
Expand Up @@ -344,6 +344,9 @@ AC_PROG_CPP
AC_PROG_CXXCPP
AC_CHECK_PROG(AR,ar,ar)
AC_CHECK_PROG(PERL,perl,perl)
AC_PATH_PROG(PDFLATEX,pdflatex,,$PATH:/usr/local/bin)
AC_PATH_PROG(PSLATEX,pslatex,,$PATH:/usr/local/bin)
AC_PATH_PROG(BIBTEX,bibtex,,$PATH:/usr/local/bin)

dnl The lack of certain tools is a show stopper

Expand Down Expand Up @@ -568,5 +571,6 @@ AC_SUBST(ENABLESHARED)
dnl make Makefiles in object tree
$PERL $srcdir/bin/objectdir.pl $EXCLUDED_DIRS $srcdir

AC_OUTPUT(src/bin/MakeVars src/lib/MakeVars src/lib/MakeRules src/lib/MakeSuffixRules)
AC_OUTPUT(src/bin/MakeVars src/lib/MakeVars src/lib/MakeRules src/lib/MakeSuffixRules
doc/MakeVars doc/MakeRules doc/MakeSuffixRules)

17 changes: 17 additions & 0 deletions doc/MakeRules.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@

default: $(TARGET)

install:: install_target

install_target:: $(TARGET)
$(INSTALL) $(INSTALLDIROPT) $(docdir)
$(LTINST) $(INSTALL) $(INSTALLDOCOPT) $< $(docdir)

clean: $(SRCDIR)/Makefile
-rm -f $(TEXGARBAGE)

distclean:: clean

targetclean:: clean

realclean:: clean
20 changes: 20 additions & 0 deletions doc/MakeSuffixRules.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@

ifdef BIBTEX
ifdef PDFLATEX
%.pdf: $(SRCDIR)/%.tex
TEXINPUTS=$(TEXINPUTS) $(PDFLATEX) $<
BIBINPUTS=$(BIBINPUTS) $(BIBTEX) $(@:%.pdf=%)
TEXINPUTS=$(TEXINPUTS) $(PDFLATEX) $<
TEXINPUTS=$(TEXINPUTS) $(PDFLATEX) $<
TEXINPUTS=$(TEXINPUTS) $(PDFLATEX) $<
endif

ifdef PSLATEX
%.ps: $(SRCDIR)/%.tex
TEXINPUTS=$(TEXINPUTS) $(PSLATEX) $<
BIBINPUTS=$(BIBINPUTS) $(BIBTEX) $(@:%.ps=%)
TEXINPUTS=$(TEXINPUTS) $(PSLATEX) $<
TEXINPUTS=$(TEXINPUTS) $(PSLATEX) $<
TEXINPUTS=$(TEXINPUTS) $(PSLATEX) $<
endif
endif
52 changes: 52 additions & 0 deletions doc/MakeVars.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
# Emacs should use -*- Makefile -*- mode.

# this is usually overridden
TARGET_TO_MAKE = $(shell basename `pwd`)

ifndef SRCDIR
SRCDIR = .
endif
SRCTOPDIR = $(SRCDIR)/$(TOPDIR)

host = @host@
host_cpu = @host_cpu@
host_vendor = @host_vendor@
host_os = @host_os@

target = @target@
target_cpu = @target_cpu@
target_vendor = @target_vendor@
target_os = @target_os@

LIBINT_VERSION = @LIBINT_VERSION@
LIBINT_SO_VERSION = @LIBINT_SO_VERSION@
BUILDID = @BUILDID@

PDFLATEX = @PDFLATEX@
PSLATEX = @PSLATEX@
BIBTEX = @BIBTEX@
# The document suffix (pdf or ps)
# Preferentially make pdf manuals, only revert to ps if necessary
ifdef BIBTEX
ifdef PSLATEX
DOCSUF = ps
LATEX = $(PSLATEX)
endif
ifdef PDFLATEX
DOCSUF = pdf
LATEX = $(PDFLATEX)
endif
endif
TEXINPUTS = :$(SRCDIR):$(SRCDIR)/..:
BIBINPUTS = $(TEXINPUTS)
TEXGARBAGE = *.bbl *.blg *.aux *.log *.ps *.pdf

INSTALL = @INSTALL@
INSTALLDIROPT = -d -m 0755
INSTALLDOCOPT = -m 0644

prefix=@prefix@
exec_prefix=@exec_prefix@
docdir=$(prefix)/doc
includedir=@libintincludedir@

55 changes: 55 additions & 0 deletions doc/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
TOPDIR=..
ifndef SRCDIR
SRCDIR=$(shell pwd)
endif

include $(TOPDIR)/Makedirlist

SUBDIRS = progman

default::
for dir in $(SUBDIRS); \
do \
(cd $${dir} && $(MAKE) $(JOBS)) || exit 1; \
done

ifndef DODEPEND
DODEPENDOPT = "DODEPEND=no"
endif

install::
for dir in $(SUBDIRS); \
do \
(cd $${dir} && $(MAKE) $(DODEPENDOPT) install) || exit 1; \
done

install_target::
for dir in $(SUBDIRS); \
do \
(cd $${dir} && $(MAKE) $(DODEPENDOPT) install_target) || exit 1; \
done

clean::
for dir in $(SUBDIRS); \
do \
(cd $${dir} && $(MAKE) $(DODEPENDOPT) clean) || exit 1; \
done

distclean::
for dir in $(SUBDIRS); \
do \
(cd $${dir} && $(MAKE) $(DODEPENDOPT) distclean) || exit 1; \
done

targetclean::
for dir in $(SUBDIRS); \
do \
(cd $${dir} && $(MAKE) $(DODEPENDOPT) targetclean) || exit 1; \
done

realclean::
for dir in $(SUBDIRS); \
do \
(cd $${dir} && $(MAKE) $(DODEPENDOPT) realclean) || exit 1; \
done

11 changes: 11 additions & 0 deletions doc/progman/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
TOPDIR=../..
ifndef SRCDIR
SRCDIR=$(shell pwd)
endif
TOPOBJDIR = $(shell ls -d `pwd`/$(TOPDIR))

TARGET = progman.$(DOCSUF)

include $(TOPDIR)/doc/MakeVars
include $(TOPDIR)/doc/MakeRules
include $(TOPDIR)/doc/MakeSuffixRules
1 change: 0 additions & 1 deletion doc/progman/progman.tex
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
%

\documentclass[12pt]{article}
\usepackage{html}
\usepackage{amsmath}
\setlength{\textheight}{9in}
\setlength{\textwidth}{6.5in}
Expand Down
2 changes: 1 addition & 1 deletion doc/progman/refs.bib
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ @Misc{Libint1
author = "J.~T.~Fermann and E.~F.~Valeev",
title = "{Libint: Machine-generated library for efficient evaluation of molecular integrals over Gaussians}",
howpublished = "",
note = "\url{http://www.ccmst.gatech.edu/evaleev/libint/}",
note = "Freely available at {\tt http://www.ccmst.gatech.edu/evaleev/libint/} or one of the authors.",
year = 2003
}
}
Expand Down
2 changes: 2 additions & 0 deletions updates
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@

12/05/2003: Added programmer's documentation. -EFV

12/05/2003: Fixed Makefiles to avoid compilation errors. -EFV

12/05/2003: Started updates file. -EFV
Expand Down

0 comments on commit db8ef0f

Please sign in to comment.