File: build.bat

package info (click to toggle)
pd-flext 0.6.4-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,960 kB
  • sloc: cpp: 12,978; makefile: 223; sh: 149
file content (32 lines) | stat: -rw-r--r-- 680 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
@echo off

if "%1"=="" goto syntax
if "%2"=="" goto syntax

rem first check configuration
call ..\build.bat %1 %2 config "PKGINFO=" "NAME=tutorial" "SRCS=."
if errorlevel 1 goto end

for /D %%i in (*) do (
	pushd %%i
	if exist package.txt (
		call ..\..\build.bat %1 %2
	)
	popd
)

goto end

rem -----------------------------------------
:syntax

echo .
echo SYNTAX: build [system] [compiler]
echo system   ... pd / max
echo compiler ... msvc / gcc / mingw / cygwin
echo .
echo Please make sure that your make program and compiler can be accessed with the
echo system path and that all relevant environment variables are properly set.
echo .

:end