Browse Source

build mad with mad

Maxim Sokhatsky 10 years ago
parent
commit
cfbc9e8927
4 changed files with 3 additions and 19 deletions
  1. 3 1
      Makefile
  2. 0 15
      build
  3. BIN
      mad
  4. 0 3
      otp.mk

+ 3 - 1
Makefile

@@ -1,2 +1,4 @@
 default: escript
 default: escript
-include otp.mk
+escript:
+	./mad dep com bun mad
+.PHONY: escript

+ 0 - 15
build

@@ -1,15 +0,0 @@
-#!/usr/bin/env escript
-
-main(_) ->
-    App = "mad",
-    EmuArgs = "-noshell",
-    Files = files(),
-    escript:create(App, [shebang, {comment, ""}, {emu_args, EmuArgs}, {archive, Files, []}]),
-    ok = file:change_mode(App, 8#764).
-
-read_file(File) -> {ok, Bin} = file:read_file(filename:absname(File)), Bin.
-files() ->
-    [{filename:basename(F), read_file(F)}
-     || F <- filelib:wildcard(filename:join("ebin", "*")) ++
-             filelib:wildcard(filename:join(["deps", "*", "ebin", "*"]))].
-

BIN
mad


+ 0 - 3
otp.mk

@@ -1,3 +0,0 @@
-escript:
-	./mad dep com bun mad
-.PHONY: escript