Commit Graph

190 Commits

Author SHA1 Message Date
Daniel Hillerström 267ea46c4d Fixed a typo in the documentation. 2017-08-06 11:04:57 +01:00
Rudi Grinberg b668d9189f Add a utop subcommand (#183)
Add a utop subcommand that build and execute a utop where all the libraries defined in the current directory are immediately available for interactive use.
2017-08-04 08:59:35 +01:00
Jeremie Dimino 2f801cf17f typo 2017-07-27 12:08:19 +01:00
Jeremie Dimino b1e140eef3 Add --destdir + document --destdir, --prefix and --libdir
Should help #202
2017-07-27 12:06:14 +01:00
Jeremie Dimino cfd43d5282 Simplify a bit the rules for installation of library files 2017-07-25 17:07:24 +01:00
François Bobot 747cf220c6 Install by specifying libdir for opam-installer
- change default findlib directory (ocamlc -where)
2017-07-25 16:44:14 +01:00
Jeremie Dimino 241f1204cb Really fix #137 2017-06-09 15:18:27 +01:00
Jeremie Dimino fff5763a53 Fix #137: fix hint when all missing libs are optional 2017-06-09 14:49:08 +01:00
Jeremie Dimino b74544919a jbuild_types.ml --> jbuild.ml 2017-06-02 14:32:05 +01:00
Anton Bachin e3d879dbd8 Fix some typos in command option docs (#117) 2017-06-02 10:51:32 +01:00
Jeremie Dimino 543354c070 Fix #115 2017-06-01 16:34:04 +01:00
Jeremie Dimino f210b32fd0 Improve the behavior of "jbuilder exec" on Windows 2017-05-31 14:41:45 +01:00
Jeremie Dimino f18afbf8aa Fix jbuilder exec for windows 2017-05-31 11:28:39 +01:00
Jeremie Dimino 65150b4166 Add -debug-backtrace 2017-05-29 14:18:07 +01:00
Jeremie Dimino c73b1f1fe3 Add a --no-buffer option
Following #107
2017-05-29 10:57:04 +01:00
Jérémie Dimino 73a4cef9f8 Move the context out of Action.t
And add it to the rule. It is never dynamic, so it is simpler this
way, we just set it in Super_context.add_rule.
2017-05-29 07:51:52 +01:00
Jeremie Dimino 35ba1bc0f1 Remove the dir field in Action.t
Simplify things for Build.progn
2017-05-26 18:34:49 +01:00
Jeremie Dimino f1f95cda37 Clarify --only-packages 2017-05-26 12:33:55 +01:00
Richard Davison 91d03de221 Add clean subcommand (#89) 2017-05-26 11:32:32 +01:00
Jeremie Dimino 4dd0de1723 Fix #72 2017-05-19 14:16:00 +01:00
Jérémie Dimino 0a2157919c Split more long lines in makefiles 2017-05-19 08:27:21 +01:00
Jérémie Dimino 42cb733c6a Remove --debug-{actions,rules}
They are superseeded by 'jbuilder rules'
2017-05-19 08:27:21 +01:00
Jérémie Dimino 00ddd7f7a2 Improve formatting 2017-05-19 08:27:21 +01:00
Jérémie Dimino fe30935fa2 Rename 'extract-makefile' to 'rules' 2017-05-19 08:27:21 +01:00
Jeremie Dimino d219020b2f added jbuilder extract-makefile 2017-05-18 19:05:01 +01:00
Jeremie Dimino 6f20a3d938 external-lib-deps now suggest an opam command 2017-05-18 14:31:31 +01:00
Jeremie Dimino b2a9d6dc51 Add: jbuilder installed-libraries --not-available 2017-05-17 14:56:53 +01:00
Jeremie Dimino b514644f9b Revert "Add support for hooks"
This reverts commit c937dc9183.
2017-05-09 15:11:09 +01:00
Jérémie Dimino c937dc9183 Add support for hooks 2017-05-09 08:18:10 +01:00
Jeremie Dimino cbc890dc5c Add the version to the exe 2017-05-08 17:19:27 +01:00
Jeremie Dimino add2a063c0 Detect the package name as topkg-jbuilder does 2017-05-08 16:56:21 +01:00
Jeremie Dimino 6d0c8198eb Substitute watermarks for jbuilder itself 2017-05-08 16:56:21 +01:00
Jeremie Dimino dce491e661 Add a subst command for watermarking files 2017-05-08 16:56:21 +01:00
Jeremie Dimino ef6be544a3 Keep the package context after parsing 2017-05-05 11:21:46 +01:00
Jeremie Dimino 83f686a821 Hint for mistyped targets 2017-04-25 16:22:17 +01:00
Jeremie Dimino f134182f82 Fix the lookup of the executable in: jbuilder exec 2017-04-10 18:10:55 +01:00
Jeremie Dimino 72550dc3e0 Add a -p/--for-release-of-packages command line argument
`-p pkgs` is the equivalent of `--root . --only-packages pkgs`
2017-04-10 10:44:49 +01:00
Stephen Dolan 110e4a63d0 Make "build" build @install by default 2017-03-31 10:30:08 +01:00
Adrien Guatto 6ce4d54274 Escape @ in error message 2017-03-30 17:42:07 +01:00
Stephen Dolan b5ae1b1f52 Quieter output (#40)
Makes the output quieter by default and add a `--verbose` argument. Print a message when waiting for background jobs to finish only it it takes more than 0.5 seconds.
2017-03-30 17:36:58 +01:00
Jeremie Dimino 3ae53de431 Add an "executable" stanza and make it easier to install executables
(executable ...) is easier to use where there is a single executable.

Also add a (package ...) and (public_name <name>)/(public_names
(<names)) to executable/executables stanzas, to make it easier to
install executables.

Closes #33
2017-03-22 15:09:26 +00:00
Jeremie Dimino 3b0c6403ee Fix a bug in Findlib.available
Fix #24
2017-03-15 12:07:20 +00:00
Jeremie Dimino 5366f76fdb Print optional deps as optional with external-lib-deps --missing 2017-03-10 16:35:02 +00:00
Jeremie Dimino d959b0f928 Add a Log module and print out the context in the log file 2017-03-10 12:32:27 +00:00
Jeremie Dimino 4aec06ee46 Better rules for finding the root 2017-03-10 10:41:34 +00:00
Jérémie Dimino 74e015923a Ignore <package>.opam when <package> is empty 2017-03-09 06:41:42 +00:00
Jeremie Dimino 3a86b3fefa Fix root finding
Look for .opam files instead of .install ones...
2017-03-08 12:10:54 +00:00
Jeremie Dimino 581c63f6ca Added --debug-action 2017-03-03 12:46:54 +00:00
Jeremie Dimino 4fa0844e42 Remove build-package in favor of --only-packages 2017-03-02 18:21:19 +00:00
Jeremie Dimino 51ce0c2daf Restrict the scope of internal names
Otherwise building several packages at once doesn't always work
2017-03-02 16:57:28 +00:00
Jeremie Dimino 14f2408543 typo 2017-03-01 19:28:44 +00:00
Jeremie Dimino 97de72c8dd Improve the external-lib-deps command 2017-03-01 19:19:43 +00:00
Jeremie Dimino 4ee2e74131 Make build-package work 2017-03-01 13:25:18 +00:00
Jeremie Dimino c88bf33131 Add jbuilder exec 2017-03-01 12:09:57 +00:00
Jeremie Dimino c3228ee95e fix ocamllex/ocamlyacc rules 2017-03-01 11:34:51 +00:00
Jeremie Dimino 643e43158e Populate a bit the manual pages 2017-02-28 19:05:04 +00:00
Jérémie Dimino e0a8e77614 Implement root lookup 2017-02-28 07:32:15 +00:00
Jérémie Dimino 2ee522be52 Add a Findlib.t in the context 2017-02-28 06:01:27 +00:00
Jeremie Dimino bad68218b9 Add a --workspace option 2017-02-27 15:07:37 +00:00
Jeremie Dimino bd9033f9bb Allow 'ocamlfind printconf path' to fail 2017-02-27 11:38:11 +00:00
Jérémie Dimino b27591aa7e Fix deprecated warning 2017-02-26 21:30:28 +00:00
Jérémie Dimino 304d7becbc Allow to specify which context for merlin 2017-02-26 20:53:32 +00:00
Jérémie Dimino af82f587e4 Fix installion when there are multiple contexts 2017-02-25 14:15:52 +00:00
Jérémie Dimino 7cae1cd3f7 Simplify target resolution 2017-02-25 14:01:08 +00:00
Jérémie Dimino 01e76a64eb Don't force to have a default context 2017-02-25 02:38:41 +00:00
Jérémie Dimino 63ff502114 Build targets for all contexts 2017-02-25 02:14:32 +00:00
Jérémie Dimino 2c5ccc9443 Fix runtest command 2017-02-25 02:02:11 +00:00
Jérémie Dimino 0ba7299117 Handle installation into multiple contexts at once 2017-02-25 01:45:41 +00:00
Jérémie Dimino 9fe0e9c87d Improve alias management 2017-02-25 01:33:37 +00:00
Jeremie Dimino a0ce6a68aa Install all manual pages 2017-02-24 17:36:39 +00:00
Jeremie Dimino 24ac055511 Avoid loading findlib packages more than once 2017-02-24 16:29:08 +00:00
Jeremie Dimino dd77e045e6 Set the default command to printing some help 2017-02-24 15:47:09 +00:00
Jeremie Dimino 437a4fa5d7 added install/uninstall commands 2017-02-24 15:41:52 +00:00
Jeremie Dimino 4bdac39dd4 fix use of labels 2017-02-24 13:08:37 +00:00
Jeremie Dimino e148f75ee4 add an install alias 2017-02-24 12:54:51 +00:00
Jeremie Dimino bdcc86d7a8 add support for building aliases 2017-02-24 12:31:01 +00:00
Jeremie Dimino 9c6e367089 Add a development mode and cleanup the code 2017-02-24 12:19:02 +00:00
Jeremie Dimino a3cd58de5d A bit more colors 2017-02-24 11:38:50 +00:00
Jeremie Dimino 03f788a0fa a bit more colors 2017-02-24 11:16:55 +00:00
Jeremie Dimino f2e1f7d2ce Check that packages are correctly specified in jbuilds 2017-02-23 16:47:25 +00:00
Jeremie Dimino fe929a07d7 Don't require packages to be defined at the root
To match the manual
2017-02-23 15:59:44 +00:00
Jeremie Dimino 3716f87285 Add a runtest command
Closes #3
2017-02-23 13:17:38 +00:00
Jeremie Dimino affacb8925 Disable handling of exceptions by cmdliner 2017-02-23 12:15:57 +00:00
Jeremie Dimino 901d9acc2a Don't mangle the output of commands and keep a log file 2017-02-23 11:45:03 +00:00
Jeremie Dimino 0281a95f2c improve man pages a bit 2017-02-23 10:32:23 +00:00
Jeremie Dimino 2295db637c Name positional arguments 2017-02-23 10:23:15 +00:00
Jeremie Dimino 358c9ecbc6 Implement targets resolution
Prepend _build/default only when a path is not a direct target. This
way "jbuilder build package.install" does produce the
"package.install" file
2017-02-23 10:04:32 +00:00
Jeremie Dimino 193f8d5238 moved cmdliner and re to vendor/ 2017-02-21 15:09:58 +00:00
Jeremie Dimino 405971694c 114.20+69 2016-12-15 16:54:46 +00:00
Jeremie Dimino cdcd7e907f 114.20+69 2016-12-02 13:54:32 +00:00