summary refs log tree commit diff
path: root/Makefile
diff options
context:
space:
mode:
authorNakidai <nakidai@disroot.org>2024-12-13 14:19:03 +0300
committerNakidai <nakidai@disroot.org>2024-12-13 14:19:03 +0300
commit1a7a3f8672d0ebd362def49d3a5193da5efae066 (patch)
treed0c69d3c2555adf5dfb5587b2f6d68a752388b89 /Makefile
parent70106d4db46aae5cc4a77e2667fecd7484e43f92 (diff)
downloadlibhttpc-1a7a3f8672d0ebd362def49d3a5193da5efae066.tar.gz
libhttpc-1a7a3f8672d0ebd362def49d3a5193da5efae066.zip
Fix install & add uninstall for manpages
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile3
1 files changed, 2 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 74f1d89..7c11323 100644
--- a/Makefile
+++ b/Makefile
@@ -31,11 +31,12 @@ install: all
 	install -m644 libhttpc.a $(DESTDIR)/lib
 	install -m755 libhttpc.so $(DESTDIR)/lib
 	install -m644 include/{config,libhttpc}.h $(DESTDIR)/include/libhttpc
-	install -m644 man/*.3 ${DESTDIR}/share/man/man3
+	install -m644 man/libhttpc*.3 ${DESTDIR}/share/man/man3
 
 uninstall:
 	$(RM) $(DESTDIR)/lib/libhttpc.{a,so}
 	$(RM) -r $(DESTDIR)/include/libhttpc/
+	$(RM) $(DESTDIR)/share/man/man3/libhttpc*.3
 
 clean:
 	rm -f ${OBJS} libhttpc.a libhttpc.so