Initial Commit
This commit is contained in:
commit
f61225c321
5 changed files with 1489 additions and 0 deletions
25
build
Executable file
25
build
Executable file
|
@ -0,0 +1,25 @@
|
|||
#!/bin/bash
|
||||
#| Cleaner builder script, than plain usage of the Makefile
|
||||
|
||||
dir="Build"
|
||||
|
||||
#| If directory doesn't exist
|
||||
if [ ! -d $dir ]; then
|
||||
mkdir -p $dir
|
||||
for file in {Makefile,*.c,*.h}; do
|
||||
ln -s "`pwd`/$file" $dir/.
|
||||
done
|
||||
fi
|
||||
|
||||
cd $dir
|
||||
make "$@"
|
||||
cd $OLDPWD
|
||||
|
||||
#| On make clean, make it really clean
|
||||
if [ "${1}" = "clean" ]; then
|
||||
rm -r $dir
|
||||
echo "Cleaned"
|
||||
fi
|
||||
|
||||
exit 0
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue