big makefile cleanup

This commit is contained in:
Vítor Santos Costa 2014-02-13 01:58:48 +00:00
parent 0420169bd0
commit 1d27d22ef0
46 changed files with 154 additions and 56 deletions

View File

@ -514,12 +514,15 @@ mycb: $(srcdir)/mycb.c
$(CC) $(CFLAGS) $(srcdir)/mycb.c -o mycb
INSTALLED_PACKAGES= \
library/matrix \
library/random \
library/regex \
library/rltree \
library/system \
library/tries \
packages/meld \
packages/ProbLog \
packages/xml \
packages/yap-lbfgs \
@PKG_BDDLIB@ \
@PKG_CLPBN@ \
@ -602,8 +605,7 @@ install_unix: startup.yss @YAPLIB@
$(INSTALL) config.h $(DESTDIR)$(INCLUDEDIR)/src/config.h
$(INSTALL) parms.h $(DESTDIR)$(INCLUDEDIR)/src/parms.h
$(INSTALL) YapTermConfig.h $(DESTDIR)$(INCLUDEDIR)
for f in $(PACKAGES); do ( echo $$f; cd $$f ; $(MAKE) install ); done
for f in $(PACKAGES); do ( echo $$f; cd $$f ; $(MAKE) install-examples ); done
for f in $(PACKAGES); do ( echo "**** INSTALLING **** " $$f; cd $$f ; $(MAKE) install ); done
install_win32: startup.yss @WINDOWS@ yap-win@EXEC_SUFFIX@ install_unix
$(INSTALL_PROGRAM) -m 755 yap.dll $(DESTDIR)$(BINDIR)/yap.dll
@ -632,9 +634,9 @@ clean: clean_docs clean_local
clean_local:
rm -f *.o *~ *.BAK *.a
distclean: realclean_docs clean_local
distclean: distclean_docs clean_local
for f in $(PACKAGES); do ( ECHO "**** CLEANING ****" $$f; cd $$f ; $(MAKE) distclean ); done
rm -f yap@EXEC_SUFFIX@ startup.yss libYap.* Makefile packages/Makefile.defs packages/Dialect.defs
for f in $(PACKAGES); do ( cd $$f ; $(MAKE) distclean ); done
dist:
@ -718,7 +720,7 @@ yap.pdf: $(YAPDOCS)
clean_docs:
rm -f *.aux *.ca *.cas *.cn *.cns *.cp *.cps *.cy *.cys *.dvi *.fn *.fns *.ky *.log *.sa *.sas *.sn *.sns *.sy *.sys *~ *.tp *.vr *.toc *.pg
realclean_docs: clean_docs
distclean_docs: clean_docs
rm -f yap.ps yap.html yap_toc.html yap.pdf yap.info*
installcheck:

View File

@ -1687,7 +1687,7 @@ if test "$yap_cv_minisat" = no -a "$INSTALL_DLLS" = "no"
then
PKG_MINISAT=""
else
PKG_MINISAT="packages/swi-minisat2"
PKG_MINISAT="packages/swi-minisat2 packages/swi-minisat2/C"
fi

View File

@ -102,7 +102,7 @@ DIALECT_BP= \
$(srcdir)/dialect/bprolog/foreach.pl \
$(srcdir)/dialect/bprolog/hashtable.yap
install: $(PROGRAMS)
install: $(PROGRAMS) install-examples
mkdir -p $(DESTDIR)$(SHAREDIR)/Yap
mkdir -p $(DESTDIR)$(SHAREDIR)/Yap/dialect
mkdir -p $(DESTDIR)$(SHAREDIR)/Yap/dialect/swi
@ -112,5 +112,10 @@ install: $(PROGRAMS)
for p in $(DIALECT_SWI); do $(INSTALL_DATA) $$p $(DESTDIR)$(SHAREDIR)/Yap/dialect/swi; done
for p in $(DIALECT_BP); do $(INSTALL_DATA) $$p $(DESTDIR)$(SHAREDIR)/Yap/dialect/bprolog; done
realclean:
install-examples:
clean:
distclean: clean
rm -f *def Makefile

View File

@ -61,7 +61,7 @@ hash.o: $(srcdir)/hash.c $(srcdir)/hash.h
@DO_SECOND_LD@yap_mpi.@SO@: $(OBJS)
@DO_SECOND_LD@ @SHLIB_LD@ $(LDFLAGS) -o yap_mpi.@SO@ $(OBJS) $(MPILDF) @EXTRA_LIBS_FOR_DLLS@
install: all
install: all install-examples
@if test "$(SOBJS)" = ""; then echo ""; else $(INSTALL_PROGRAM) $(SOBJS) $(DESTDIR)$(YAPLIBDIR); fi
clean:
@ -70,3 +70,7 @@ clean:
no:
@echo "YAP LAM/MPI module not compiled."
install-examples:
distclean: clean
rm -f Makefile

View File

@ -52,7 +52,7 @@ matlab.o: $(srcdir)/matlab.c
@DO_SECOND_LD@matlab.@SO@: matlab.o
@DO_SECOND_LD@ @SHLIB_LD@ -o matlab.@SO@ matlab.o @EXTRA_LIBS_FOR_DLLS@
install: all
install: all install-examples
$(INSTALL_PROGRAM) $(SOBJS) $(DESTDIR)$(YAPLIBDIR)
clean:
@ -61,3 +61,4 @@ clean:
realclean: clean
rm -f Makefile $(SOBJS)
install-examples:

View File

@ -53,9 +53,14 @@ matrix.o: $(srcdir)/matrix.c
@DO_SECOND_LD@matrix.@SO@: matrix.o
@DO_SECOND_LD@ @SHLIB_LD@ $(LDFLAGS) -o matrix.@SO@ matrix.o @EXTRA_LIBS_FOR_DLLS@
install: all
install: all install-examples
$(INSTALL_PROGRAM) $(SOBJS) $(DESTDIR)$(YAPLIBDIR)
clean:
rm -f *.o *~ $(OBJS) $(SOBJS) *.BAK
install-examples:
distclean: clean
rm -f Makefile

View File

@ -53,7 +53,7 @@ yap_random.o: $(srcdir)/yap_random.c
@DO_SECOND_LD@yap_random.@SO@: yap_random.o
@DO_SECOND_LD@ @SHLIB_LD@ $(LDFLAGS) -o yap_random.@SO@ yap_random.o @EXTRA_LIBS_FOR_DLLS@
install: all
install: all install-examples
$(INSTALL_PROGRAM) $(SOBJS) $(DESTDIR)$(YAPLIBDIR)
install-examples:
@ -61,6 +61,7 @@ install-examples:
clean:
rm -f *.o *~ $(OBJS) $(SOBJS) *.BAK
realclean: clean
rm -f Makefile $(SOBJS)
distclean: clean
rm -f Makefile

View File

@ -77,9 +77,13 @@ regexec.o: $(srcdir)/regexec.c
@DO_SECOND_LD@regexec.@SO@: regexec.o
@DO_SECOND_LD@ @SHLIB_LD@ $(LDFLAGS) -o regexec.@SO@ regexec.o @EXTRA_LIBS_FOR_DLLS@
install: all
install: all install-examples
$(INSTALL_PROGRAM) $(SOBJS) $(DESTDIR)$(YAPLIBDIR)
install-examples:
clean:
rm -f *.o *~ $(OBJS) $(SOBJS) *.BAK
distclean: clean
rm -f Makefile

View File

@ -58,7 +58,7 @@ yaprl.o: $(srcdir)/yap_rl.c
@DO_SECOND_LD@yap_rl.@SO@: $(OBJS)
@DO_SECOND_LD@ @SHLIB_LD@ $(LDFLAGS) -o yap_rl.@SO@ $(OBJS) @EXTRA_LIBS_FOR_DLLS@
install: all
install: all install-examples
@if test "$(SOBJS)" = "no"; then echo ""; else $(INSTALL_PROGRAM) $(SOBJS) $(DESTDIR)$(YAPLIBDIR); fi
clean:
@ -67,3 +67,9 @@ clean:
no:
@echo "YAP RL module not compiled."
install-examples:
distclean: clean
rm -f Makefile

View File

@ -53,9 +53,14 @@ sys.o: $(srcdir)/sys.c
@DO_SECOND_LD@sys.@SO@: sys.o
@DO_SECOND_LD@ @SHLIB_LD@ $(LDFLAGS) -o sys.@SO@ sys.o @EXTRA_LIBS_FOR_DLLS@
install: all
install: all install-examples
$(INSTALL_PROGRAM) $(SOBJS) $(DESTDIR)$(YAPLIBDIR)
install-examples:
clean:
rm -f *.o *~ $(OBJS) $(SOBJS) *.BAK
distclean: clean
rm -f Makefilee

View File

@ -69,10 +69,13 @@ itries.o: $(srcdir)/core_tries.h $(srcdir)/base_itries.h $(srcdir)/itries.c
@DO_SECOND_LD@itries.@SO@: core_tries.o base_itries.o itries.o
@DO_SECOND_LD@ @SHLIB_LD@ $(LDFLAGS) -o itries.@SO@ core_tries.o base_itries.o itries.o @EXTRA_LIBS_FOR_DLLS@
install: all
install: all install-examples
$(INSTALL_PROGRAM) $(SOBJS) $(DESTDIR)$(YAPLIBDIR)
clean:
rm -f *.o *~ $(OBJS) $(SOBJS) *.BAK
install-examples:
distclean: clean
rm -f Makefile

View File

@ -119,7 +119,7 @@ CLPBN_LEARNING_EXAMPLES= \
all:
install: $(CLBN_TOP) $(CLBN_PROGRAMS) $(CLPBN_LEARNING_PROGRAMS) $(CLPBN_SCHOOL_EXAMPLES) $(CLPBN_HMMER_EXAMPLES) $(CLPBN_LEARNING_EXAMPLES)
install: $(CLBN_TOP) $(CLBN_PROGRAMS) $(CLPBN_LEARNING_PROGRAMS) install-examples
mkdir -p $(DESTDIR)$(SHAREDIR)/clpbn
mkdir -p $(DESTDIR)$(SHAREDIR)/clpbn/learning
mkdir -p $(DESTDIR)$(EXDIR)
@ -130,7 +130,7 @@ install: $(CLBN_TOP) $(CLBN_PROGRAMS) $(CLPBN_LEARNING_PROGRAMS) $(CLPBN_SCHOOL_
for h in $(CLPBN_PROGRAMS); do $(INSTALL_DATA) $$h $(DESTDIR)$(SHAREDIR)/clpbn; done
for h in $(CLPBN_LEARNING_PROGRAMS); do $(INSTALL_DATA) $$h $(DESTDIR)$(SHAREDIR)/clpbn/learning; done
install-examples:
install-examples: $(CLPBN_SCHOOL_EXAMPLES) $(CLPBN_HMMER_EXAMPLES) $(CLPBN_LEARNING_EXAMPLES)
for h in $(CLPBN_EXAMPLES); do $(INSTALL_DATA) $$h $(DESTDIR)$(EXDIR); done
for h in $(CLPBN_SCHOOL_EXAMPLES); do $(INSTALL_DATA) $$h $(DESTDIR)$(EXDIR)/School; done
for h in $(CLPBN_HMMER_EXAMPLES); do $(INSTALL_DATA) $$h $(DESTDIR)$(EXDIR)/HMMer; done
@ -146,3 +146,7 @@ docs: $(MANUAL)
install_docs: docs
$(INSTALL_DATA) pfl.pdf $(DESTDIR)$(EXDIR)
clean:
distclean: clean
rm -f Makefile

View File

@ -211,10 +211,11 @@ $(UTESTING): $(UTESTS_OBJS)
$(CXX) -o $@ -c $(CXXFLAGS) $<
install: all
install: all install-exaamples
$(INSTALL_PROGRAM) $(SOBJS) $(DESTDIR)$(YAPLIBDIR)
$(INSTALL_PROGRAM) $(HCLI) $(DESTDIR)$(BINDIR)
install-examples:
clean:
rm -f $(SOBJS) $(HCLI) $(UTESTING) *.o *~ $(utestsdir)/*.o $(utestsdir)/*~

View File

@ -70,3 +70,5 @@ PLTOTEX=$(PUBLICPL) -q -l $(srcdir)/pltotex -g pltotex --
%.o: $(srcdir)/%.c
$(CC) -c $(CFLAGS) $< -o $@
install-examples::

View File

@ -82,7 +82,7 @@ MANUAL = $(srcdir)/$(MANUAL_NAME)
all:
install: $(PROGRAMS) $(PROBLOG_PROGRAMS) $(PROBLOG_EXAMPLES)
install: $(PROGRAMS) $(PROBLOG_PROGRAMS) install-examples
mkdir -p $(DESTDIR)$(SHAREDIR)/Yap
mkdir -p $(DESTDIR)$(SHAREDIR)/Yap/problog
mkdir -p $(DESTDIR)$(DOCSDIR)
@ -91,7 +91,7 @@ install: $(PROGRAMS) $(PROBLOG_PROGRAMS) $(PROBLOG_EXAMPLES)
for p in $(PROBLOG_PROGRAMS); do $(INSTALL_DATA) $$p $(DESTDIR)$(SHAREDIR)/Yap/problog; done
$(INSTALL_DATA) $(srcdir)/LICENSE $(DESTDIR)$(DOCSDIR)
install-examples:
install-examples: $(PROBLOG_EXAMPLES)
for p in $(PROBLOG_EXAMPLES); do $(INSTALL_DATA) $$p $(DESTDIR)$(EXDOCSDIR); done
pdf: $(MANUAL)
@ -104,5 +104,6 @@ install_docs: pdf
clean:
realclean:
distclean:
rm -f Makefile

View File

@ -60,3 +60,9 @@ clean:
install: default
$(INSTALL_PROGRAM) problogbdd $(DESTDIR)$(SHAREDIR)/Yap
install-examples:
distclean: clean
rm -f Makefile

View File

@ -60,3 +60,8 @@ clean:
install: default
$(INSTALL_PROGRAM) problogbdd_lfi $(DESTDIR)$(SHAREDIR)/Yap
install-examples:
distclean: clean
rm -f Makefile

@ -1 +1 @@
Subproject commit 87ea72e5db5844be1bccfac0efb56abdab1d7f84
Subproject commit 87bb48410a5c5e9bc36abfde0e718b8bd3e99864

@ -1 +1 @@
Subproject commit 5b577c8414aeaba18c2eb9eff987060fa9df96d8
Subproject commit f19e64df267c6dbaf3c4f93b44f2b1e343e4b449

View File

@ -60,7 +60,7 @@ cudd.o: $(srcdir)/cudd.c
@DO_SECOND_LD@cudd.@SO@: cudd.o
@DO_SECOND_LD@ @SHLIB_LD@ $(LDFLAGS) -o cudd.@SO@ cudd.o @EXTRA_LIBS_FOR_DLLS@ @CUDD_LDFLAGS@
install: all
install: all install-examples
mkdir -p $(DESTDIR)$(SHAREDIR)
for h in $(BDD_PROLOG); do $(INSTALL_DATA) $$h $(DESTDIR)$(SHAREDIR); done
$(INSTALL_PROGRAM) $(SOBJS) $(DESTDIR)$(YAPLIBDIR)
@ -70,7 +70,7 @@ install-examples:
clean:
rm -f *.o *~ $(OBJS) $(SOBJS) *.BAK
realclean: clean
distclean: clean
rm -f $(SOBJS) Makefile

@ -1 +1 @@
Subproject commit fe49dc72a077b8f853fa2fb42661bd79a8c6aa00
Subproject commit 33b688ae733f35bb938f8ed0ad4170d882d86837

@ -1 +1 @@
Subproject commit 4424be7f21a07d4f29c1fcbf0330956d74fc07fa
Subproject commit 10cbe41ff198d1c37fed9019f30b3792b6a1cd44

@ -1 +1 @@
Subproject commit 23a8bc68dfc19351ed96db608cfb82db616a1d1d
Subproject commit 4aa1c28369a3003506aafafc9911d85683d58b2c

View File

@ -149,7 +149,7 @@ CPLINT_LEARNING_PROGRAMS=\
$(CPLINT_SRCDIR)/rib \
$(CPLINT_SRCDIR)/slipcase \
$(CPLINT_SRCDIR)/slipcover
all: $(SOBJS)
@ -167,7 +167,7 @@ cplint_Prob.o: $(srcdir)/cplint_Prob.c $(srcdir)/cplint.h
clean:
rm -f *.o *~ $(OBJS) $(SOBJS) *.BAK
install: all
install: all install-examples
mkdir -p $(DESTDIR)$(SHAREDIR)/cplint
mkdir -p $(DESTDIR)$(SHAREDIR)/cplint/examples
mkdir -p $(DESTDIR)$(SHAREDIR)/cplint/doc
@ -185,6 +185,8 @@ install: all
cp $(CPLINT_SRCDIR)/slipcover/*.pl $(DESTDIR)$(SHAREDIR)/cplint/
$(INSTALL_PROGRAM) slipcase/bddem.so $(DESTDIR)$(YAPLIBDIR)
install_examples:
installcheck:
for h in ${CPLINT_TEST_PROGRAMS}; do echo "t. halt." | $(BINDIR)/yap -l $$h; done
@ -192,3 +194,5 @@ installcheck:
test%:
echo "t. halt." | yap -l $(CPLINT_SRCDIR)/$@.pl
distclean: clean
rm -f Makefile

View File

@ -62,7 +62,7 @@ memory.o: $(srcdir)/memory.cu $(srcdir)/pred.h
@DO_SECOND_LD@cuda.@SO@: $(OBJS)
@DO_SECOND_LD@ @CUDA_SHLIB_LD@ $(CUDA_LDFLAGS) -o cuda.@SO@ $(OBJS)
install: all
install: all install-exampleS
mkdir -p $(DESTDIR)$(SHAREDIR)
for h in $(BDD_PROLOG); do $(INSTALL_DATA) $$h $(DESTDIR)$(SHAREDIR); done
$(INSTALL_PROGRAM) $(SOBJS) $(DESTDIR)$(YAPLIBDIR)
@ -72,6 +72,6 @@ install-examples:
clean:
rm -f *.o *~ $(OBJS) *.BAK
realclean:
distclean: clean
rm -f $(SOBJS) Makefile

View File

@ -67,12 +67,12 @@ gecode.yap: $(srcdir)/gecode$(GECODE_MAJOR)_yap_hand_written.yap $(srcdir)/$(GEC
.PHONY: all clean install
clean:
-rm -f *.o *.so *~ gecode.yap
-rm -f *.o $(SOBJS) *~ gecode.yap
realclean:
distclean:
-rm -f $(SOBJS) Makefile
install: all
install: all install-examples
mkdir -p $(DESTDIR)$(YAPLIBDIR)
mkdir -p $(DESTDIR)$(SHAREDIR)/Yap
mkdir -p $(DESTDIR)$(SHAREDIR)/Yap/gecode
@ -81,3 +81,4 @@ install: all
$(INSTALL) $(srcdir)/clpfd.yap $(DESTDIR)$(SHAREDIR)/Yap/gecode
install-examples:

@ -1 +1 @@
Subproject commit 3ea73d3b1d23631a3545a9578539ea7e3df567f6
Subproject commit c7aa381b57518be621560c49ee5f86cf2f060e64

@ -1 +1 @@
Subproject commit f96cfb7533c57789fa25db64b73c09aa7269d244
Subproject commit cb103a2ab6f1e18054380598b08b466e0fcef902

@ -1 +1 @@
Subproject commit a208a6e52d9541b0755776dfe1df2ab07dcfcdc0
Subproject commit 5c21d8fbe4845578c43f4ab0eb29a59e60b77d42

View File

@ -48,11 +48,17 @@ PROGRAMS= \
all:
install: $(PROGRAMS) $(EXAMPLES)
install: $(PROGRAMS)examples-install
mkdir -p $(DESTDIR)$(SHAREDIR)/Yap
mkdir -p $(DESTDIR)$(SHAREDIR)/Yap/meld
mkdir -p $(DESTDIR)$(EX_INSTALL_DIR)
$(INSTALL_DATA) $(srcdir)/meld.yap $(DESTDIR)$(SHAREDIR)/Yap
for p in $(MELD_PROGRAMS); do $(INSTALL_DATA) $$p $(DESTDIR)$(SHAREDIR)/Yap/meld; done
install-examples: $(EXAMPLES)
for p in $(MELD_EXAMPLES); do $(INSTALL_DATA) $$p $(DESTDIR)$(EX_INSTALL_DIR); done
clean:
distclean: clean
rm -r Makefile

View File

@ -81,7 +81,7 @@ all: $(SOBJS)
@DO_SECOND_LD@%.@SO@: $(OBJS)
@DO_SECOND_LD@ @SHLIB_LD@ $(LDFLAGS) -o $@ $(OBJS) @EXTRA_LIBS_FOR_DLLS@
install: all install_myddas
install: all install_myddas install-examples
mkdir -p $(DESTDIR)$(SHAREDIR)
$(INSTALL_PROGRAM) $(SOBJS) $(DESTDIR)$(YAPLIBDIR)
@ -102,3 +102,4 @@ clean:
distclean: clean
rm -f Makefile

@ -1 +1 @@
Subproject commit db1645c121c478e0634e6d944b180d4378fcf4dc
Subproject commit 90510fe601057a9122b6abeb17b716fa16a7c1aa

@ -1 +1 @@
Subproject commit 1e324d30b913edbe78cc4b923cde7998013cbfb0
Subproject commit 8fa3a149b3b448ea2450e4bb570155933d16f4fe

@ -1 +1 @@
Subproject commit 0593a65587ffbada6b6679204d0254a2a46b1535
Subproject commit 8497465ab06f0991add8c5928ff11904ae204d51

View File

@ -78,6 +78,8 @@ all: $(TARGETS)
install: $(TARGETS)
$(INSTALL_PROGRAM) $(SOBJS) $(DESTDIR)$(YAPLIBDIR)
install-examples:
clean: clean_subdirs
$(RM) $(TARGET)
@ -86,6 +88,9 @@ clean_subdirs:
$(RM) $$i/*.o; \
done
distclean: clean
rm -f Makefile $(SOBJS)
##----------------------------------------------------------------------
.PHONY: all install clean $(SUBDIRS)

View File

@ -147,3 +147,6 @@ install-examples:
for p in $(EXS); do $(INSTALL_DATA) $$p $(DESTDIR)$(SHAREDIR)/doc/Yap/packages/examples/prism; done
for p in $(EXS_JTREE); do $(INSTALL_DATA) $$p $(DESTDIR)$(SHAREDIR)/doc/Yap/packages/examples/prism/jtree; done
for p in $(EXS_NOISY_OR); do $(INSTALL_DATA) $$p $(DESTDIR)$(SHAREDIR)/doc/Yap/packages/examples/prism/noisy_or; done
distclean: clean
rm -f Makefile

View File

@ -24,7 +24,7 @@ python.@SO@: $(OBJS)
install: install-@PYTHON_TARGET@
install-dummy::
install-pitf: $(SOLIBS) $(addprefix $(srcdir)/, $(LIBPL))
install-pitf: $(SOLIBS) $(addprefix $(srcdir)/, $(LIBPL)) install-examples
mkdir -p $(DESTDIR)$(SOLIBDIR)
rm -f $(DESTDIR)$(SOLIBDIR)/python.@SO@
$(INSTALL_PROGRAM) $(SOLIBS) $(SOLIBDIR)
@ -53,6 +53,8 @@ uninstall::
(cd $(PLBASE)/library && rm -f $(LIBPL))
$(MKINDEX)
install-examples::
################################################################
# Documentation
################################################################

@ -1 +1 @@
Subproject commit e8360ba2db265175a3b469bc9d51aff5cfccabb0
Subproject commit 34cac46db62cad37386ea3321de37c0349eb9852

@ -1 +1 @@
Subproject commit 2505370b84226fb21d71cfa447bc1c1ada9b5d22
Subproject commit e3c1b297ea6d75d02e26511b555039f902f65e87

@ -1 +1 @@
Subproject commit 22db6b08d5ee26235e7ab22da194e2b4edadf4a7
Subproject commit ca78af7cb093a4095a2e74fe83c48165d8e33226

View File

@ -81,7 +81,7 @@ install-examples:
clean:
rm -f *.o *~ $(OBJS) $(SOBJS) *.BAK
realclean:
distclean:
rm -f Makefile $(OBJS)

View File

@ -36,7 +36,7 @@ EXAMPLE_PROGRAMS= \
all:
install: $(PROGRAMS)
install: $(PROGRAMS) install-examples
mkdir -p $(DESTDIR)$(SHAREDIR)/Yap
mkdir -p $(DESTDIR)$(SHAREDIR)/doc/Yap/packages/examples/minisat
for p in $(PROGRAMS); do $(INSTALL_DATA) $$p $(DESTDIR)$(SHAREDIR)/Yap; done
@ -46,6 +46,6 @@ install-examples:
clean:
realclean:
distclean:
rm Makefile

View File

@ -61,11 +61,17 @@ PROGRAMS= \
all:
install: $(PROGRAMS) $(EXAMPLES)
install: $(PROGRAMS) install-examples
mkdir -p $(DESTDIR)$(SHAREDIR)/Yap
mkdir -p $(DESTDIR)$(SHAREDIR)/Yap/xml
mkdir -p $(DESTDIR)$(SHAREDIR)/doc/Yap/packages/examples/xml
$(INSTALL_DATA) $(srcdir)/xml.pl $(DESTDIR)$(SHAREDIR)/Yap
for p in $(XML_PROGRAMS); do $(INSTALL_DATA) $$p $(DESTDIR)$(SHAREDIR)/Yap/xml; done
install-examples: $(EXAMPLES)
mkdir -p $(DESTDIR)$(SHAREDIR)/Yap/xml
for p in $(XML_EXAMPLES); do $(INSTALL_DATA) $$p $(DESTDIR)$(SHAREDIR)/doc/Yap/packages/examples/xml; done
clean:
distclean: clean
rm -r Makefile

View File

@ -1,4 +1,4 @@
#
#
# default base directory for YAP installation
# (EROOT for architecture-dependent files)
#
@ -59,6 +59,10 @@ install: all
$(INSTALL_PROGRAM) $(SOBJS) $(DESTDIR)$(YAPLIBDIR)
for h in $(PLLIB); do $(INSTALL_DATA) $$h $(DESTDIR)$(SHAREDIR); done
install-examples:
clean:
rm -f *.o *~ $(OBJS) $(SOBJS) *.BAK
distclean: clean
rm -f Makefile

View File

@ -66,3 +66,10 @@ install: $(PROGRAMS)
mkdir -p $(DESTDIR)$(SHAREDIR)/dcg
for p in $(PROGRAMS); do $(INSTALL_DATA) $$p $(DESTDIR)$(SHAREDIR)/Yap; done
install-examples:
clean:
distclean: clean
rm -f Makefile

View File

@ -34,3 +34,7 @@ install: $(PROGRAMS)
install-examples:
clean:
distclean: clean
rm -f Makefile