ref: eee39d9575319970fc311677ed1f00ae7b2e2396
parent: f303a8938be43a957302be6e29b11afbfa29fed6
author: Quentin Rameau <quinq@fifth.space>
date: Tue Jan 24 09:39:04 EST 2017
Makefile: uninstall include directory too
--- a/Makefile
+++ b/Makefile
@@ -34,7 +34,7 @@
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 @@
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