Browse files

added make support for windows

  • Loading branch information...
1 parent 265aacb commit 5496975530ce96adfbdee2b9eaf0b535fa2a96da @ostinelli committed Oct 25, 2009
Showing with 23 additions and 5 deletions.
  1. +23 −5 compile.bat → make.bat
View
28 compile.bat → make.bat
@@ -29,9 +29,27 @@ REM NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
REM POSSIBILITY OF SUCH DAMAGE.
REM ==========================================================================================================
-echo compiling...
-FOR %%f in (src/*.erl) DO erlc %command% -o ebin src/%%f
-echo ok.
-echo copying additional files...
+:BEGIN
+IF "%1"=="debug" GOTO SETDEBUG
+IF "%1"=="example" GOTO EXAMPLES
+IF "%1"=="clean" GOTO CLEAN
+GOTO COMPILE
+
+:SETDEBUG
+SET command=-D log_debug
+GOTO COMPILE
+
+:EXAMPLES
+mkdir ebin
+FOR %%f in (examples\*.erl) DO erlc -W %command% -o ebin "%%f"
+
+:COMPILE
+mkdir ebin
+FOR %%f in (src\*.erl) DO erlc -W %command% -o ebin "%%f"
copy src\misultin.app ebin\misultin.app /Y
-echo ok.
+GOTO END
+
+:CLEAN
+FOR %%f in (ebin\*) DO del "%%f"
+
+:END

0 comments on commit 5496975

Please sign in to comment.