#6 mandir option doesn't work Edit

open
nobody
5
2012-07-05
2010-06-08
Iain Barnett
No

the configure option for mandir doesn't work. Regardless of what is used the mandir used by make will always be PREFIX/man. I even hardcoded the path I wanted to use in the configure file where the mandir variable is initialized and it still used PREFIX/man. This ends up with an error during make install:

install: PREFIX/man/man1/cjpeg.1: No such file or directory

/usr/bin/install -c -m 644 ./cjpeg.1 PREFIX/man/man1/cjpeg.1

Try installing it anywhere other than /usr/local and it will fail at this point.

version jpeg-6b

Discussion

  • Iain Barnett
    Iain Barnett
    2010-06-08

    I altered the Makefile to this:

    mandir = $(prefix)/shared/doc/man/man$(manext)

    but the install still failed at the same point, but works when I remove this chunk from the Makefile (around line 198)

    $(INSTALL_DATA) $(srcdir)/djpeg.1 $(mandir)/$(manprefix)djpeg.$(manext)
    $(INSTALL_DATA) $(srcdir)/cjpeg.1 $(mandir)/$(manprefix)cjpeg.$(manext)
    $(INSTALL_DATA) $(srcdir)/jpegtran.1 $(mandir)/$(manprefix)jpegtran.$(manext)
    $(INSTALL_DATA) $(srcdir)/rdjpgcom.1 $(mandir)/$(manprefix)rdjpgcom.$(manext)
    $(INSTALL_DATA) $(srcdir)/wrjpgcom.1 $(mandir)/$(manprefix)wrjpgcom.$(manext)
    

    I can do without the docs.

     


Anonymous


Cancel   Add attachments