summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniil Baturin <daniil@baturin.org>2015-04-08 05:29:52 +0200
committerDaniil Baturin <daniil@baturin.org>2015-04-08 05:29:52 +0200
commit76e598700ce4fa64eba251085af7fd85a03bfe6f (patch)
treebcc9d626c85e60282ba095c928e87720817ef0b7
parent4b97a0e707db50105c20014e40bccdd6bded4221 (diff)
downloadhvinfo-76e598700ce4fa64eba251085af7fd85a03bfe6f.tar.gz
hvinfo-76e598700ce4fa64eba251085af7fd85a03bfe6f.zip
Check if build dir exists before doing gprclean.
-rw-r--r--Makefile6
1 files changed, 4 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 543779a..e8ac99b 100644
--- a/Makefile
+++ b/Makefile
@@ -40,8 +40,10 @@ hvinfo:
$(GPRBUILD) -Phvinfo
clean:
- $(GPRCLEAN)
- rm -rf $(BUILD_DIR)
+ if test -d $(BUILD_DIR); then \
+ $(GPRCLEAN); \
+ rm -rf $(BUILD_DIR);\
+ fi
install:
$(INSTALL) -d $(DESTDIR)/$(PREFIX)/$(BINDIR)