summaryrefslogtreecommitdiff
path: root/olpc/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'olpc/Makefile')
-rw-r--r--olpc/Makefile8
1 files changed, 7 insertions, 1 deletions
diff --git a/olpc/Makefile b/olpc/Makefile
index 55991eacfcd3..c1a7751598a9 100644
--- a/olpc/Makefile
+++ b/olpc/Makefile
@@ -49,7 +49,13 @@ $(RPMCONFIGFILE) : $(CONFIG_SRC)
# Create a tarball out of the gittree
#
$(TARBALL):
- make distclean; \
+ @make distclean; \
+ git-status | grep --quiet modified || git-status | grep --quiet Untracked; \
+ if [ $$? -eq 0 ]; then \
+ echo "*** TREE IS NOT CLEAN. PLEASE COMMMIT CHANGES FIRST ***"; \
+ git-status; \
+ exit -1;\
+ fi; \
mkdir -p $(SOURCESDIR); \
cd $(SOURCESDIR); \
ln -s $(srctree) $(KERNELDIR); \