diff options
author | Eksperimental <eksperimental@users.noreply.github.com> | 2017-04-16 05:20:26 -0500 |
---|---|---|
committer | José Valim <jose.valim@gmail.com> | 2017-04-16 12:20:26 +0200 |
commit | ccc790dc737fd8096d31cd09fb1ac122f7961c97 (patch) | |
tree | 791fa3c98710266d8c19854944643514bfec1ab2 /Makefile | |
parent | a2c8f51d3d130eae5930bbea748df5134ae95cab (diff) | |
download | elixir-ccc790dc737fd8096d31cd09fb1ac122f7961c97.tar.gz |
Makefile fixes (#5980)
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 28 |
1 files changed, 14 insertions, 14 deletions
@@ -24,8 +24,8 @@ GIT_TAG = $(strip $(shell head="$(call GIT_REVISION)"; git tag --points-at $$hea define CHECK_ERLANG_RELEASE $(Q) erl -noshell -eval '{V,_} = string:to_integer(erlang:system_info(otp_release)), io:fwrite("~s", [is_integer(V) and (V >= 18)])' -s erlang halt | grep -q '^true'; \ if [ $$? != 0 ]; then \ - echo "At least Erlang 18.0 is required to build Elixir"; \ - exit 1; \ + echo "At least Erlang 18.0 is required to build Elixir"; \ + exit 1; \ fi; endef @@ -62,22 +62,22 @@ lib/elixir/src/elixir.app.src: src/elixir.app.src $(Q) $(call CHECK_ERLANG_RELEASE) $(Q) rm -rf lib/elixir/src/elixir.app.src $(Q) echo "%% This file is automatically generated from <project_root>/src/elixir.app.src" \ - >lib/elixir/src/elixir.app.src + >lib/elixir/src/elixir.app.src $(Q) cat src/elixir.app.src >>lib/elixir/src/elixir.app.src erlang: $(Q) cd lib/elixir && $(REBAR) compile -# Since Mix depends on EEx and EEx depends on -# Mix, we first compile EEx without the .app -# file, then mix and then compile EEx fully +# Since Mix depends on EEx and EEx depends on Mix, +# we first compile EEx without the .app file, +# then mix and then compile EEx fully elixir: stdlib lib/eex/ebin/Elixir.EEx.beam mix ex_unit logger eex iex stdlib: $(KERNEL) VERSION $(KERNEL): lib/elixir/lib/*.ex lib/elixir/lib/*/*.ex lib/elixir/lib/*/*/*.ex - $(Q) if [ ! -f $(KERNEL) ]; then \ - echo "==> bootstrap (compile)"; \ - $(ERL) -s elixir_compiler bootstrap -s erlang halt; \ + $(Q) if [ ! -f $(KERNEL) ]; then \ + echo "==> bootstrap (compile)"; \ + $(ERL) -s elixir_compiler bootstrap -s erlang halt; \ fi @ echo "==> elixir (compile)"; $(Q) cd lib/elixir && ../../$(ELIXIRC) "lib/kernel.ex" -o ebin; @@ -100,15 +100,15 @@ $(eval $(call APP_TEMPLATE,iex,IEx)) install: compile @ echo "==> elixir (install)" $(Q) for dir in lib/*; do \ - rm -Rf $(DESTDIR)$(PREFIX)/$(LIBDIR)/elixir/$$dir/ebin; \ + rm -rf $(DESTDIR)$(PREFIX)/$(LIBDIR)/elixir/$$dir/ebin; \ $(INSTALL_DIR) "$(DESTDIR)$(PREFIX)/$(LIBDIR)/elixir/$$dir/ebin"; \ $(INSTALL_DATA) $$dir/ebin/* "$(DESTDIR)$(PREFIX)/$(LIBDIR)/elixir/$$dir/ebin"; \ done $(Q) $(INSTALL_DIR) "$(DESTDIR)$(PREFIX)/$(LIBDIR)/elixir/bin" $(Q) $(INSTALL_PROGRAM) $(filter-out %.ps1, $(filter-out %.bat, $(wildcard bin/*))) "$(DESTDIR)$(PREFIX)/$(LIBDIR)/elixir/bin" $(Q) $(INSTALL_DIR) "$(DESTDIR)$(PREFIX)/$(BINDIR)" - $(Q) for file in "$(DESTDIR)$(PREFIX)"/$(LIBDIR)/elixir/bin/* ; do \ - ln -sf "../$(LIBDIR)/elixir/bin/$${file##*/}" "$(DESTDIR)$(PREFIX)/$(BINDIR)/" ; \ + $(Q) for file in "$(DESTDIR)$(PREFIX)"/$(LIBDIR)/elixir/bin/*; do \ + ln -sf "../$(LIBDIR)/elixir/bin/$${file##*/}" "$(DESTDIR)$(PREFIX)/$(BINDIR)/"; \ done $(MAKE) install_man @@ -127,7 +127,7 @@ clean: clean_exbeam: $(Q) rm -f lib/*/ebin/Elixir.*.beam -#==> Create Documentation +#==> Documentation tasks LOGO_PATH = $(shell test -f ../docs/logo.png && echo "--logo ../docs/logo.png") SOURCE_REF = $(shell tag="$(call GIT_TAG)" revision="$(call GIT_REVISION)"; echo "$${tag:-$$revision}\c") @@ -184,7 +184,7 @@ Precompiled.zip: build_man compile zips: Precompiled.zip Docs.zip -#==> Tests tasks +#==> Test tasks test: test_erlang test_elixir |