aboutsummaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)Author
2015-10-22Add the releases chapter contentsLoïc Hoguin
2015-10-22Add NIF chapter to the guideLoïc Hoguin
Not tested yet, figured it could still help people.
2015-10-22Return argument as a last resort in $(dep_name)Jean-Sébastien Pédron
Therefore, if neither $(dep_something) nor $(pkg_something_name) is defined, $(dep_name) will return the name specified in the various dependencies lists. This fixes `core-app-pt-erlc-opts` and `core-deps-fetch-fail-unknown` because now, the dependency is not "forgotten" anymore. Before, the dependency directory was missing from $(ALL_DEPS_DIRS) because $(dep_name) returned nothing.
2015-10-22Add git-submodule fetch methodLoïc Hoguin
Initially submitted by Daniel White.
2015-10-22Merge branch 'fix-test-core-plugins-one' of ↵Loïc Hoguin
https://github.com/rabbitmq/erlang.mk
2015-10-22Use relative path to erlang.mk file in autopatched depsLoïc Hoguin
2015-10-22Replace "if $(MAKE) then false" by "! $(MAKE)"Jean-Sébastien Pédron
2015-10-22Do not try to execute an empty shell script in core-plugins-one testJean-Sébastien Pédron
The previous code did: if `<code that prints nothing on stdout>`; then ... So the test failed but not for the good reason. The forked shell printed: /bin/sh: gmake[2]:: not found Now, both "Run 'make ...'" tests are simplified and do not rely on backticks and test(1) anymore. Either the output is inspected or the exit code is checked.
2015-10-22Move external plugins chapter in a plugins sectionLoïc Hoguin
2015-10-22Fix a small typoLoïc Hoguin
2015-10-22Add placeholders for missing chaptersLoïc Hoguin
2015-10-20Merge branch 'support-nongnu-date' of https://github.com/rabbitmq/erlang.mkLoïc Hoguin
2015-10-20Merge branch 'master' of https://github.com/kostyushkin/erlang.mkLoïc Hoguin
2015-10-20Rename couch package into opencouchLoïc Hoguin
Per request: https://github.com/ninenines/erlang.mk/issues/300 This commit also fixes issues with packages which have a different name than the application name.
2015-10-20Add package jamdb_sybase to the indexSergiy Kostyushkin
2015-10-20Add package octopus to the indexSergiy Kostyushkin
2015-10-19Force rebuilds on Makefile/.app.src changesLoïc Hoguin
Everything will be rebuilt when the Makefile or any included Makefile (like Erlang.mk or plugins) change. Only the .app will be rebuilt when the .app.src file changes.
2015-10-19Fix creating modules from templates when using apps/ onlyLoïc Hoguin
2015-10-19Remove mention of OTP_DEPS from the docsLoïc Hoguin
2015-10-15fix multiple patterns used on core_findDaniel Goertzen
'find', the underlying command of core_find, does not support multiple patterns after -name. This patch fixes multi-pattern use in c_src.mk by calling core_find once for each pattern.
2015-10-12Use '+%F %T%z' to format the timestampJean-Sébastien Pédron
Option `--rfc-3339` is specific to GNU Coreutils' date(1). This change fixes the use of `make summary` on other platforms such as FreeBSD. The underscore is integrated to the tiem format at the same time; no need for an additional $(subst).
2015-10-12Merge branch 'pkg-reload.mk' of https://github.com/bullno1/erlang.mkLoïc Hoguin
2015-10-12Add test for and fix DTL_FULL_PATHLoïc Hoguin
2015-10-12ErlyDTL files generate to beam directlyLoïc Hoguin
2015-10-12Cleanup ErlyDTL testLoïc Hoguin
2015-10-12Merge branch 'fix-plugin-erlydtl' of https://github.com/bullno1/erlang.mkLoïc Hoguin
2015-10-12Merge branch 'elbrujohalcon.table.display' of ↵Loïc Hoguin
https://github.com/elbrujohalcon/erlang.mk
2015-10-12Fix user guide PDF generatingLoïc Hoguin
2015-10-12Fix port compilation for rebar projectsLoïc Hoguin
2015-10-12Rework package testingLoïc Hoguin
Better error reporting and can now build everything in parallel. Failed builds are kept; others are deleted. The following command builds everything and then gives a diff of what got fixed/broken since last time ("> " is newly broken, "< " is newly fixed). make packages -j 32 -k; make summary
2015-10-11Ensure that modules generated from erlydtl are listed in .app filebullno1
2015-10-06Load rebar before autopatchingLoïc Hoguin
Some rebar.config.script files use the vsn key available only after rebar is loaded.
2015-10-04Add package reload_mk to the indexbullno1
2015-10-01Improved table display :)Brujo Benavides
2015-09-29Remove documented stuff from the README2.0.0-pre.1Loïc Hoguin
2015-09-29Add chapter Packages and dependencies to the guideLoïc Hoguin
2015-09-29Use ?= in APPS_DIR test, just like DEPS_DIRLoïc Hoguin
2015-09-29Add a test for SKIP_DEPSLoïc Hoguin
Also don't delete DEPS_DIR if SKIP_DEPS is set.
2015-09-29Add a test for NO_AUTOPATCH_ERLANG_MKLoïc Hoguin
2015-09-29Add tests for and fix NO_AUTOPATCHLoïc Hoguin
2015-09-29Use a deeper directory for core-deps-dir testLoïc Hoguin
2015-09-29Merge branch 'app_file_newlines' of https://github.com/ingwinlu/erlang.mkLoïc Hoguin
2015-09-29Improve a few comments and messagesLoïc Hoguin
2015-09-29Add support for APPS_DIRLoïc Hoguin
This changes adds Rebar-like "apps/" functionality. From this commit onward, Erlang.mk supports 4 types of repositories: - Repo with an Erlang app at root level + deps/ - Repo with an Erlang app at root level + apps/ deps/ - Repo with no app at root level + deps/ - Repo with no app at root level + apps/ deps/ Example usage: - make new-app in=webchat - make new t=gen_server n=my_chat in=webchat - make Replace new-app with new-lib to create an OTP library instead of an OTP application.
2015-09-27Improve tests' platform detectionLoïc Hoguin
Fixes a small warning printed on OSX, and don't run a specific test on FreeBSD (compiles a C library not compatible with FreeBSD).
2015-09-27Fix core_find on stock OSXLoïc Hoguin
OSX find has this terrible behavior: $ find test/core_app_asn1/src/ -type f -name \* test/core_app_asn1/src//CAP.erl test/core_app_asn1/src//Def.erl test/core_app_asn1/src//use_cap.erl test/core_app_asn1/src//use_def.erl It's been long fixed everywhere else. Change the core_find function to remove the trailing / if any before calling find.
2015-09-27Fix "repetition-operator operand invalid" error in tests on OSXLoïc Hoguin
2015-09-27Replace sed -i with perl -ni in testsLoïc Hoguin
This fixes an issue on OSX where the OSX make 3.81 has a bug with multilines single quoted arguments to commands: it strips the backslash and newlines entirely. This makes it impossible to use sed -i properly. Since this is the test suite, we can instead use perl -ni, which can do the same and is available and work fine on all tested platforms.
2015-09-26Make tests work on more systemsLoïc Hoguin
Some systems do not have subsecond file modification detection capabilities. This is the case in OSX because the HFS+ file system has 1 second resolution. This is also the case in other OSes with particular file systems or even shells. For example, the "test" command in Bash does not support subsecond file times, while the ZSH one and the /usr/bin/test on my machine does. On those systems, with Bash, find -newer will work, but not test -nt. Tests were updated to reflect this. The test Makefile runs a series of commands to determine if subsecond resolution is available. When it is not, a sleep command will be executed before relevant operations in the tests. Because the Bash shell is often the default shell for Make, and because users of ZSH may want to avoid sleeping for no reasons, a new variable was introduced: ZSH=1. When provided when running tests, the shell will be switched to ZSH, and subsecond resolution will work as expected. Tests have been fixed to work with ZSH as well. All this only applies to tests, Erlang.mk itself is so far not affected by this issue.
2015-09-26retain newlines in generated .app filederwinlu
Replacing $(newline) occurances with \n before passing it to printf instead of echo ensures valid output accross different platforms.