Skip to content
This repository
Browse code

added make support for windows

  • Loading branch information...
commit 5496975530ce96adfbdee2b9eaf0b535fa2a96da 1 parent 265aacb
Roberto Ostinelli authored

Showing 1 changed file with 23 additions and 5 deletions. Show diff stats Hide diff stats

  1. +23 5 compile.bat → make.bat
28 compile.bat → make.bat
@@ -29,9 +29,27 @@ REM NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
29 29 REM POSSIBILITY OF SUCH DAMAGE.
30 30 REM ==========================================================================================================
31 31
32   -echo compiling...
33   -FOR %%f in (src/*.erl) DO erlc %command% -o ebin src/%%f
34   -echo ok.
35   -echo copying additional files...
  32 +:BEGIN
  33 +IF "%1"=="debug" GOTO SETDEBUG
  34 +IF "%1"=="example" GOTO EXAMPLES
  35 +IF "%1"=="clean" GOTO CLEAN
  36 +GOTO COMPILE
  37 +
  38 +:SETDEBUG
  39 +SET command=-D log_debug
  40 +GOTO COMPILE
  41 +
  42 +:EXAMPLES
  43 +mkdir ebin
  44 +FOR %%f in (examples\*.erl) DO erlc -W %command% -o ebin "%%f"
  45 +
  46 +:COMPILE
  47 +mkdir ebin
  48 +FOR %%f in (src\*.erl) DO erlc -W %command% -o ebin "%%f"
36 49 copy src\misultin.app ebin\misultin.app /Y
37   -echo ok.
  50 +GOTO END
  51 +
  52 +:CLEAN
  53 +FOR %%f in (ebin\*) DO del "%%f"
  54 +
  55 +:END

0 comments on commit 5496975

Please sign in to comment.
Something went wrong with that request. Please try again.