commit 70500f1e134d44e3ca341a15f66447a8465346b0
Author: Quentin Rameau <[email protected]>
AuthorDate: Tue Jan 24 14:39:04 2017 +0100
Commit: Quentin Rameau <[email protected]>
CommitDate: Tue Jan 24 14:39:04 2017 +0100
Makefile: uninstall include directory too
diff --git a/Makefile b/Makefile
index 7aaabaa..0d82783 100644
--- a/Makefile
+++ b/Makefile
@@ -34,7 +34,7 @@ tests: all
install: all
mkdir -p $(DESTDIR)/$(PREFIX)/libexec/scc/
mkdir -p $(DESTDIR)/$(PREFIX)/bin/
- mkdir -p $(DESTDIR)/$(PREFIX)/include/scc
+ mkdir -p $(DESTDIR)/$(PREFIX)/include/scc/
cp -f bin/cc?-* $(DESTDIR)/$(PREFIX)/libexec/scc/
cp -f bin/cc1-$(ARCH) $(DESTDIR)/$(PREFIX)/bin/cpp
cp -f bin/scc $(DESTDIR)/$(PREFIX)/bin/
@@ -44,6 +44,7 @@ install: all
cd $(DESTDIR)/$(PREFIX)/bin && chmod 755 cpp scc && strip cpp scc
uninstall:
+ rm -rf $(DESTDIR)/$(PREFIX)/include/scc/
rm -rf $(DESTDIR)/$(PREFIX)/libexec/scc/
rm -f $(DESTDIR)/$(PREFIX)/bin/scc
rm -f $(DESTDIR)/$(PREFIX)/bin/cpp