X-Git-Url: http://git.annexia.org/?a=blobdiff_plain;f=Makefile.am;h=7ed61d1838901eafdff5656ed8aa048da5e206b9;hb=fb4f336f7830e0572689ffcb4d5362dab0bea7dc;hp=53f50d306661d05c1c6c3e2ee025176ef6f72fbe;hpb=a0bf80d39e5dbb7daac3c28ab546a2c3ae1312a6;p=goaljobs.git diff --git a/Makefile.am b/Makefile.am index 53f50d3..7ed61d1 100644 --- a/Makefile.am +++ b/Makefile.am @@ -20,25 +20,31 @@ include common-rules.mk ACLOCAL_AMFLAGS = -I m4 EXTRA_DIST = \ - config.ml.in \ COPYING \ goaljobs \ + goaljobs_config.ml.in \ + goaljobs.ml \ + goaljobs.mli \ + goaljobs_memory.ml \ + goaljobs.pod \ + goaljobs-reference.pod \ goaljobs.spec \ goaljobs.spec.in \ + html/.gitignore \ META.in \ - NOTES \ + pa_goal.ml \ README \ - $(sources) \ - pa_goal.ml + TODO SUBDIRS = . examples tests sources = \ - config.ml \ + goaljobs_config.ml \ goaljobs.ml \ - goaljobs.mli + goaljobs.mli \ + goaljobs_memory.ml -bin_SCRIPTS = goaljobs +bin_SCRIPTS = goaljobs goaljobs-memory # These targets are noinst because we use a custom install hook to # install them, and are _SCRIPTS because automake doesn't know how to @@ -46,10 +52,10 @@ bin_SCRIPTS = goaljobs noinst_SCRIPTS = goaljobs.cma goaljobs.cmxa pa_goal.cmo # Library. -goaljobs.cma: config.cmo goaljobs.cmo +goaljobs.cma: goaljobs_config.cmo goaljobs.cmo $(OCAMLFIND) ocamlc -a -o $@ $(OCAMLCFLAGS) $(OCAMLCPACKAGES) $^ -goaljobs.cmxa: config.cmx goaljobs.cmx +goaljobs.cmxa: goaljobs_config.cmx goaljobs.cmx $(OCAMLFIND) ocamlopt -a -o $@ $(OCAMLOPTFLAGS) $(OCAMLOPTPACKAGES) $^ # Preprocessor for goaljobs scripts. @@ -57,6 +63,11 @@ pa_goal.cmo: pa_goal.ml $(OCAMLFIND) ocamlc $(OCAMLCFLAGS) -package camlp4.lib -linkpkg \ -pp $(CAMLP4OF) -c $< -o $@ +# Standalone program for examining the goaljobs memory. +goaljobs-memory: goaljobs_config.cmx goaljobs.cmx goaljobs_memory.cmx + $(OCAMLFIND) ocamlopt $(OCAMLOPTFLAGS) $(OCAMLOPTPACKAGES) \ + $^ -linkpkg -o $@ + # Install. install-data-hook: mkdir -p $(DESTDIR)$(OCAMLLIB) @@ -83,6 +94,56 @@ depend: .depend rpm: dist rpmbuild -ta $(PACKAGE_NAME)-$(PACKAGE_VERSION).tar.gz +if HAVE_POD2MAN + +man_MANS = goaljobs.1 goaljobs-reference.1 + +goaljobs.1: goaljobs.pod + $(POD2MAN) -c "Goaljobs" --release $(PACKAGE)-$(VERSION) $< > $@-t + mv $@-t $@ + +goaljobs-reference.1: goaljobs-reference.pod + $(POD2MAN) -c "Goaljobs" --release $(PACKAGE)-$(VERSION) $< > $@-t + mv $@-t $@ + +goaljobs.1.txt: goaljobs.pod + pod2text $< > $@-t + mv $@-t $@ + +goaljobs-reference.1.txt: goaljobs-reference.pod + pod2text $< > $@-t + mv $@-t $@ + +endif + +if HAVE_OCAMLDOC + +# HTML library documentation. +# XXX The list below probably changes with every ocamldoc version. +# How can we use a wildcard? +doc_DATA = \ + html/Goaljobs.html \ + html/index_attributes.html \ + html/index_classes.html \ + html/index_class_types.html \ + html/index_exceptions.html \ + html/index.html \ + html/index_methods.html \ + html/index_modules.html \ + html/index_module_types.html \ + html/index_types.html \ + html/index_values.html \ + html/style.css \ + html/type_Goaljobs.html + +$(doc_DATA): stamp-ocamldoc +stamp-ocamldoc: goaljobs.mli goaljobs.ml + rm -f $@ + $(OCAMLFIND) ocamldoc -html -d html $(OCAMLCPACKAGES) $^ + touch $@ + +endif + # License check. licensecheck: licensecheck $$(git ls-files)