This repository has been archived on 2023-08-20. You can view files and clone it, but cannot push or open issues or pull requests.
yap-6.3/packages/plunit/Makefile.in

138 lines
2.8 KiB
Makefile
Raw Normal View History

2009-11-23 10:55:10 +00:00
################################################################
# SWI-Prolog `PlDoc' package
# Author: Jan Wielemaker. wielemak@science.uva.nl
# Copyright: GPL (see COPYING or www.gnu.org
################################################################
.SUFFIXES: .tex .dvi .doc .pl
SHELL=@SHELL@
ifeq (@PROLOG_SYSTEM@,yap)
prefix = @prefix@
2010-03-05 10:22:48 +00:00
exec_prefix = @exec_prefix@
2009-11-23 10:55:10 +00:00
ROOTDIR = $(prefix)
EROOTDIR = @exec_prefix@
srcdir=@srcdir@
BINDIR = $(EROOTDIR)/bin
2010-03-05 08:15:02 +00:00
LIBDIR=@libdir@
YAPLIBDIR=@libdir@/Yap
SHAREDIR=$(EROOTDIR)/share/Yap
2009-11-23 10:55:10 +00:00
PL=@EXTEND_DYNLOADER_PATH@ $(DESTDIR)$(BINDIR)/yap $(DESTDIR)$(YAPLIBDIR)/startup.yss
LN_S=@LN_S@
EXDIR=$(LIBDIR)/examples/plunit
2010-01-15 01:02:24 +00:00
INSTALLDIR=$(SHAREDIR)
2009-11-23 10:55:10 +00:00
else # SWI
srcdir=.
PLBASE=@PLBASE@
PLARCH=@PLARCH@
PL=@PL@
XPCEBASE=$(PLBASE)/xpce
PKGDOC=$(PLBASE)/doc/packages
PCEHOME=../xpce
LIBDIR=$(PLBASE)/library
EXDIR=$(PKGDOC)/examples/plunit
2010-01-15 01:02:24 +00:00
INSTALLDIR=$(LIBDIR)
2009-11-23 10:55:10 +00:00
endif
DESTDIR=
DOCTOTEX=$(PCEHOME)/bin/doc2tex
PLTOTEX=$(PCEHOME)/bin/pl2tex
vLATEX=latex
DOC=plunit
TEX=$(DOC).tex
DVI=$(DOC).dvi
PDF=$(DOC).pdf
HTML=$(DOC).html
INSTALL=@INSTALL@
INSTALL_PROGRAM=@INSTALL_PROGRAM@
INSTALL_DATA=@INSTALL_DATA@
LIBPL= $(srcdir)/plunit.pl $(srcdir)/test_wizard.pl $(srcdir)/test_cover.pl
LIBALL= $(LIBPL) $(SUPPORT)
EXAMPLES= $(srcdir)/read.pl $(srcdir)/simple.pl
all:
@echo "Nothing to do for this package"
install: $(LIBPL)
2010-01-15 01:02:24 +00:00
mkdir -p $(DESTDIR)$(INSTALLDIR)
$(INSTALL_DATA) $(LIBALL) $(DESTDIR)$(INSTALLDIR)
2009-11-23 10:55:10 +00:00
$(PL) -f none -g make -t halt
ln-install: $(LIBPL)
2010-01-15 01:02:24 +00:00
mkdir -p $(DESTDIR)$(INSTALLDIR)
2009-11-23 10:55:10 +00:00
for f in $(LIBALL); do \
2010-01-15 01:02:24 +00:00
rm -f $(DESTDIR)$(INSTALLDIR)/$$f; \
ln -s `pwd`/$$f $(DESTDIR)$(INSTALLDIR); \
2009-11-23 10:55:10 +00:00
done
$(PL) -f none -g make -t halt
rpm-install: install
pdf-install: install-examples
$(INSTALL_DATA) $(DOC).pdf $(DESTDIR)$(PKGDOC)
html-install: install-examples
$(INSTALL_DATA) $(DOC).html $(DESTDIR)$(PKGDOC)
install-examples::
mkdir -p $(DESTDIR)$(EXDIR)
(cd examples && $(INSTALL_DATA) $(EXAMPLES) $(DESTDIR)$(EXDIR))
uninstall::
2010-01-15 01:02:24 +00:00
rm -f $(DESTDIR)$(INSTALLDIR)/plunit.pl
2009-11-23 10:55:10 +00:00
$(PL) -f none -g make -t halt
check::
true
################################################################
# Documentation
################################################################
doc: $(PDF) $(HTML)
pdf: $(PDF)
html: $(HTML)
$(HTML): $(TEX)
latex2html $(DOC)
mv html/index.html $@
rmdir html
$(PDF): $(TEX)
../../man/runtex --pdf $(DOC)
$(TEX): $(DOCTOTEX)
.doc.tex:
$(DOCTOTEX) $*.doc > $*.tex
.pl.tex:
$(PLTOTEX) $*.pl > $*.tex
################################################################
# Clean
################################################################
clean:
rm -f *~ *% config.log
# rm -f $(TEX)
# ../../man/runtex --clean $(DOC)
# rm -rf html
distclean: clean
rm -f $(TARGETS) config.cache config.status Makefile