doc/Makefile: install .3 man pages to man3 subdir
authorStefano Sabatini <stefasab@gmail.com>
Sat, 18 May 2013 13:10:21 +0000 (15:10 +0200)
committerStefano Sabatini <stefasab@gmail.com>
Sun, 19 May 2013 17:26:25 +0000 (19:26 +0200)
Fix trac ticket #2585.

doc/Makefile

index 1c1d9cd..cd24b8c 100644 (file)
@@ -14,7 +14,9 @@ COMPONENTS-$(CONFIG_AVFORMAT)   += ffmpeg-formats ffmpeg-protocols
 COMPONENTS-$(CONFIG_AVDEVICE)   += ffmpeg-devices
 COMPONENTS-$(CONFIG_AVFILTER)   += ffmpeg-filters
 
-MANPAGES    = $(PROGS-yes:%=doc/%.1)    $(PROGS-yes:%=doc/%-all.1)    $(COMPONENTS-yes:%=doc/%.1)    $(LIBRARIES-yes:%=doc/%.3)
+MANPAGES1   = $(PROGS-yes:%=doc/%.1)    $(PROGS-yes:%=doc/%-all.1)    $(COMPONENTS-yes:%=doc/%.1)
+MANPAGES3   = $(LIBRARIES-yes:%=doc/%.3)
+MANPAGES    = $(MANPAGES1) $(MANPAGES3)
 PODPAGES    = $(PROGS-yes:%=doc/%.pod)  $(PROGS-yes:%=doc/%-all.pod)  $(COMPONENTS-yes:%=doc/%.pod)  $(LIBRARIES-yes:%=doc/%.pod)
 HTMLPAGES   = $(PROGS-yes:%=doc/%.html) $(PROGS-yes:%=doc/%-all.html) $(COMPONENTS-yes:%=doc/%.html) $(LIBRARIES-yes:%=doc/%.html) \
               doc/developer.html                                        \
@@ -93,13 +95,16 @@ install-progs-$(CONFIG_DOC): install-man
 
 install-man: $(MANPAGES)
        $(Q)mkdir -p "$(MANDIR)/man1"
-       $(INSTALL) -m 644 $(MANPAGES) "$(MANDIR)/man1"
+       $(INSTALL) -m 644 $(MANPAGES1) "$(MANDIR)/man1"
+       $(Q)mkdir -p "$(MANDIR)/man3"
+       $(INSTALL) -m 644 $(MANPAGES3) "$(MANDIR)/man3"
 endif
 
 uninstall: uninstall-man
 
 uninstall-man:
-       $(RM) $(addprefix "$(MANDIR)/man1/",$(MANPAGES))
+       $(RM) $(addprefix "$(MANDIR)/man1/",$(MANPAGES1))
+       $(RM) $(addprefix "$(MANDIR)/man3/",$(MANPAGES3))
 
 clean:: docclean