Honor DESTDIR
https://github.com/encukou/py3c/pull/29

Remove dependency on Python 2 for the tests

Index: Makefile
--- Makefile.orig
+++ Makefile
@@ -16,9 +16,7 @@ doc:
 	cd doc && $(MAKE) html
 
 test:
-	$(MAKE) test-python2
 	$(MAKE) test-python3
-	$(MAKE) test-python2-cpp
 	$(MAKE) test-python3-cpp
 
 # TODO: A better way to build & use one-off extensions?
@@ -42,12 +40,12 @@ py3c.pc: py3c.pc.in $(includedir)
 	sed -e's:@includedir@:$(realpath $(includedir)):' $< > $@
 
 install: py3c.pc
-	mkdir -p -m 0755 $(includedir)/py3c
-	install -m 0644 include/py3c.h $(includedir)/py3c.h
-	install -m 0644 $(wildcard include/py3c/*.h) $(includedir)/py3c/
+	mkdir -p -m 0755 $(DESTDIR)$(includedir)/py3c
+	install -m 0644 include/py3c.h $(DESTDIR)$(includedir)/py3c.h
+	install -m 0644 $(wildcard include/py3c/*.h) $(DESTDIR)$(includedir)/py3c/
 
-	mkdir -p -m 0755 $(pkgconfigdir)
-	install -m 0644 py3c.pc $(pkgconfigdir)/
+	mkdir -p -m 0755 $(DESTDIR)$(pkgconfigdir)
+	install -m 0644 py3c.pc $(DESTDIR)$(pkgconfigdir)/
 
 clean:
 	rm py3c.pc ||:
