aboutsummaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)Author
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-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.
2015-09-26only newline for id if neededderwinlu
2015-09-25Fix error messages appearing when using parse transformsLoïc Hoguin
The errors were happening in the rebar.config generation code. In addition to the fix, three tests were added: a project that uses a pt from its own code with -compile directives, a project that uses a pt from a dep with the pt set as ERLC_OPTS, and the inclusion of parse transform options in the generated rebar.config when compatibility is desired.
2015-09-24Add a test for DEPS_DIRLoïc Hoguin
2015-09-24Add tests for IGNORE_DEPSLoïc Hoguin
Fix IGNORE_DEPS not being propagated downward. Fix IGNORE_DEPS handling with autopatched Rebar projects, where the user defined value was overriden with the one from autopatching.
2015-09-24Add tests for dependency fetching orderLoïc Hoguin
2015-09-24Add tests for custom, fail (bad and unknown) and legacy fetch methodsLoïc Hoguin
Also improves the handling of the legacy fetch method. It is now enabled only for dependencies, and not for the top-level application. This should force Erlang.mk users to update their definitions.
2015-09-24Fix hex fetch method on WindowsLoïc Hoguin
2015-09-24Add test for the hex fetch methodLoïc Hoguin
2015-09-24Add test for the cp fetch methodLoïc Hoguin
2015-09-23Add tests for git, hg, svn fetch methodsLoïc Hoguin
Renamed dep-full to fetch-git to avoid having duplicate tests.
2015-09-23Add a test for dep_$(DEP) variablesLoïc Hoguin
2015-09-23Fix bug introduced by previous commitLoïc Hoguin
2015-09-23Implement, add test for dep_$(DEP)_commit variablesLoïc Hoguin
2015-09-22Add tests for TEST_DEPSLoïc Hoguin
2015-09-22Add a test for SHELL_DEPSLoïc Hoguin
2015-09-22Disable last check of core-deps-rel under WindowsLoïc Hoguin
Releases are barely usable on Windows at this point, so this will get revisited later on when I have time to improve the extended start script. Currently it requires root rights, and it doesn't have useful commands like rpcterms.
2015-09-22Add REL_DEPS along with its testLoïc Hoguin
2015-09-22Add test for OTP_DEPSLoïc Hoguin