summaryrefslogtreecommitdiffstats
path: root/source/Code/genmakefile.sh
blob: 0ea26a7432148638c98a617ec033eb19009fbaad (plain)
1
2
3
4
5
6
7
8
9
10
11
#!/bin/bash

cat makefile | grep -v "^SRC +=" > makefile.new
for row in $(find | grep .c$); do
	if [ "$row" != "./main.c" ]; then 
		echo "SRC += $row" >> makefile.new
	fi
done
rm makefile
mv makefile.new makefile