all :V: build strip :V: $STRIPTARG %.strip : % cp -f $prereq $target $STRIP $target build :VQ: build-$MKSHELL build-sh :VQ: mkdir -p exe pwd=`pwd` for name in `command cd src/cmd && goblin ls && command cd $pwd`; do cd src/cmd/$name echo Buliding "$name"... if go build -o $pwd/exe/$name ; then echo Done building "$name" else echo "Error(s) while building $name" fi if echo "$name" | goblin in $BUILD_WASM ; then echo Bulding WASM for "'$name'"... if GOARCH=wasm GOOS=js go build -o "$pwd/$STATIC/$name.wasm" ; then echo Done building WASM for "$name" else echo "Error(s) while building WASM for '$name'" fi fi command cd $pwd done clean:VQ: pwd=`pwd` names=`command cd src/cmd && goblin ls && command cd $pwd` for name in $names ; do echo Removing "'$name'..." rm -f "$pwd/exe/$name" if echo "$name" | goblin in $BUILD_WASM ; then rm -f "$pwd/$STATIC/$name.wasm" fi done