79 lines
2.0 KiB
Makefile
79 lines
2.0 KiB
Makefile
|
################################################################
|
||
|
# SWI-Prolog CLPQR package
|
||
|
# Author: Jan Wielemaker. jan@swi.psy.uva.nl
|
||
|
# Copyright: LGPL (see COPYING or www.gnu.org
|
||
|
################################################################
|
||
|
|
||
|
PACKAGE=clpqr
|
||
|
|
||
|
include ../Makefile.defs
|
||
|
|
||
|
CLPDIR=$(PLLIBDIR)
|
||
|
CLPRDIR=$(CLPDIR)/clpr
|
||
|
CLPQDIR=$(CLPDIR)/clpq
|
||
|
CLPQRDIR=$(CLPDIR)/clpqr
|
||
|
|
||
|
CLPRPRIV= bb_r.pl bv_r.pl \
|
||
|
fourmotz_r.pl ineq_r.pl \
|
||
|
itf_r.pl nf_r.pl \
|
||
|
store_r.pl
|
||
|
CLPQPRIV= bb_q.pl bv_q.pl \
|
||
|
fourmotz_q.pl ineq_q.pl \
|
||
|
itf_q.pl nf_q.pl \
|
||
|
store_q.pl
|
||
|
CLPQRPRIV= class.pl dump.pl \
|
||
|
geler.pl itf.pl \
|
||
|
ordering.pl \
|
||
|
project.pl redund.pl
|
||
|
LIBPL= $(srcdir)/clpr.pl $(srcdir)/clpq.pl
|
||
|
EXAMPLES=
|
||
|
|
||
|
all::
|
||
|
@echo "Nothing to be done for this package"
|
||
|
|
||
|
install: $(LIBPL) install-examples
|
||
|
mkdir -p $(DESTDIR)$(CLPDIR)
|
||
|
mkdir -p $(DESTDIR)$(CLPRDIR)
|
||
|
mkdir -p $(DESTDIR)$(CLPQDIR)
|
||
|
mkdir -p $(DESTDIR)$(CLPQRDIR)
|
||
|
$(INSTALL_DATA) $(LIBPL) $(DESTDIR)$(CLPDIR)
|
||
|
for f in $(CLPRPRIV); do $(INSTALL_DATA) $(srcdir)/clpr/$$f $(DESTDIR)$(CLPRDIR); done
|
||
|
for f in $(CLPQPRIV); do $(INSTALL_DATA) $(srcdir)/clpq/$$f $(DESTDIR)$(CLPQDIR); done
|
||
|
for f in $(CLPQRPRIV); do $(INSTALL_DATA) $(srcdir)/clpqr/$$f $(DESTDIR)$(CLPQRDIR); done
|
||
|
$(INSTALL_DATA) $(srcdir)/README $(DESTDIR)$(CLPQRDIR)
|
||
|
|
||
|
ln-install::
|
||
|
@$(MAKE) INSTALL_DATA=$(LN_INSTALL_DATA) INSTALL_PROGRAM=$(LN_INSTALL_PROGRAM) install
|
||
|
|
||
|
rpm-install: install
|
||
|
|
||
|
pdf-install: install-examples
|
||
|
|
||
|
html-install: install-examples
|
||
|
|
||
|
install-examples::
|
||
|
# mkdir -p $(DESTDIR)$(EXDIR)
|
||
|
# (cd Examples && $(INSTALL_DATA) $(EXAMPLES) $(DESTDIR)$(EXDIR))
|
||
|
|
||
|
uninstall:
|
||
|
(cd $(CLPDIR) && rm -f $(LIBPL))
|
||
|
rm -rf $(CLPRDIR)
|
||
|
rm -rf $(CLPQDIR)
|
||
|
rm -rf $(CLPQRDIR)
|
||
|
|
||
|
check::
|
||
|
# $(PL) -q -f $(srcdir)/clpr_test.pl -g test,halt -t 'halt(1)'
|
||
|
|
||
|
|
||
|
################################################################
|
||
|
# Clean
|
||
|
################################################################
|
||
|
|
||
|
clean:
|
||
|
rm -f *~ *% config.log
|
||
|
|
||
|
distclean: clean
|
||
|
rm -f config.h config.cache config.status Makefile
|
||
|
rm -rf autom4te.cache
|
||
|
|