-config.cmo :
-config.cmx :
goaljobs.cmi :
-goaljobs.cmo : config.cmo goaljobs.cmi
-goaljobs.cmx : config.cmx goaljobs.cmi
+goaljobs.cmo : goaljobs_config.cmo goaljobs.cmi
+goaljobs.cmx : goaljobs_config.cmx goaljobs.cmi
+goaljobs_config.cmo :
+goaljobs_config.cmx :
/config.h
/config.h.in
/config.log
-/config.ml
/config.status
/config.sub
/configure
/examples/compile-c/compile
/examples/compile-c/program
+/goaljobs_config.ml
/goaljobs.spec
/goaljobs-*.tar.gz
/install-sh
ACLOCAL_AMFLAGS = -I m4
EXTRA_DIST = \
- config.ml.in \
COPYING \
goaljobs \
+ goaljobs_config.ml.in \
+ goaljobs.ml \
+ goaljobs.mli \
goaljobs.spec \
goaljobs.spec.in \
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
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.
--- /dev/null
+Enhancements to pa_goal:
+
+ - Include the goal name, source file location in the generated
+ rule so we can improve error messages.
+
+ - Implement some sort of tracing based on the above.
fi
AC_CONFIG_HEADERS([config.h])
-AC_CONFIG_FILES([config.ml
+AC_CONFIG_FILES([goaljobs_config.ml
goaljobs.spec
Makefile
META
open Unix
open Printf
+open Goaljobs_config
+
type goal_result_t = Goal_OK | Goal_failed of string
exception Goal_result of goal_result_t
let args = ref [] in
let display_version () =
- printf "%s %s\n" Config.package_name Config.package_version;
+ printf "%s %s\n" package_name package_version;
exit 0
in