summaryrefslogtreecommitdiff
path: root/hooks/pre-commit
blob: 402ec0951604983ffdc2bc40a206666d60274b2c (plain)
1
2
3
4
5
6
7
8
9
#!/bin/bash

if [ -f $GIT_DIR/../app/Makefile ]; then
	cd "$GIT_DIR/../app"
	make clean || exit 0
else
	echo "No Makefile found." 1>&2
	exit 1
fi