about summary refs log tree commit diff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile6
1 files changed, 3 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index 86265ce..d99eef5 100644
--- a/Makefile
+++ b/Makefile
@@ -27,14 +27,14 @@ libhttpc.a:
 	ar rcs $@ $^
 
 install: all
-	install -d $(DESTDIR)/lib
+	install -d $(DESTDIR)/lib ${DESTDIR}/include/libhttpc
 	install -m644 libhttpc.a $(DESTDIR)/lib
 	install -m755 libhttpc.so $(DESTDIR)/lib
-	install -m644 include/libhttpc.h $(DESTDIR)/include
+	install -m644 include/{config,libhttpc}.h $(DESTDIR)/include
 
 uninstall:
 	$(RM) $(DESTDIR)/lib/libhttpc.{a,so}
-	$(RM) $(DESTDIR)/include/libhttpc.h
+	$(RM) $(DESTDIR)/include/libhttpc/{config,libhttpc}.h
 
 clean:
 	rm -f ${OBJS} libhttpc.a libhttpc.so