openjpeg/doc/Makefile.nix
Winfried f4b08bacb0 -This line, and those below, will be ignored--
M    configure
M    Makefile.in
M    opj_config.h.in.user
M    mj2/Makefile.in
M    mj2/Makefile.am
M    mj2/Makefile.nix
M    libopenjpeg/Makefile.in
M    jp3d/Makefile.in
M    jp3d/libjp3dvm/Makefile.in
M    jp3d/Makefile.nix
M    jp3d/codec/Makefile.in
M    jp3d/codec/Makefile.am
M    config.nix
M    configure.ac
M    doc/Makefile.in
M    doc/Makefile.am
M    doc/Makefile.nix
M    INSTALL
M    CHANGES
M    jpwl/Makefile.in
M    jpwl/Makefile.am
M    jpwl/Makefile.nix
M    Makefile.am
M    Makefile.nix
M    codec/Makefile.in
M    codec/Makefile.am
2010-10-17 22:42:46 +00:00

46 lines
1.3 KiB
Nix

#doc Makefile.nix
include ../config.nix
doc_dir = $(prefix)/share/doc/openjpeg-$(MAJOR).$(MINOR)
man_dir = $(prefix)/share/man
ifeq ($(HAS_DOXYGEN),yes)
docs:
doxygen Doxyfile.dox
endif
clean:
rm -rf html
install:
install -d $(doc_dir)
install -d $(man_dir)/man1 $(man_dir)/man3
ifeq ($(WITH_JPWL),yes)
(cd $(man_dir)/man1 && rm -f JPWL_image_to_j2k* JPWL_j2k_to_image* )
(cd $(man_dir)/man3 && rm -f JPWL_libopenjpeg* )
endif
(cd $(man_dir)/man1 && rm -f image_to_j2k* j2k_to_image* j2k_dump* )
(cd $(man_dir)/man3 && rm -f libopenjpeg* )
gzip -f image_to_j2k.1 j2k_to_image.1 j2k_dump.1 libopenjpeg.3
cp image_to_j2k.1.gz j2k_to_image.1.gz j2k_dump.1.gz $(man_dir)/man1
cp libopenjpeg.3.gz $(man_dir)/man3
gunzip *\.gz
ifeq ($(WITH_JPWL),yes)
(cd $(man_dir)/man1 && \
ln -sf image_to_j2k.1.gz JPWL_image_to_j2k.1.gz && \
ln -sf j2k_to_image.1.gz JPWL_j2k_to_image.1.gz)
(cd $(man_dir)/man3 && ln -sf libopenjpeg.3.gz JPWL_libopenjpeg.3.gz)
endif
cp ../LICENSE ../CHANGES $(doc_dir)
uninstall:
rm -rf $(doc_dir)
ifeq ($(WITH_JPWL),yes)
(cd $(man_dir)/man1 && rm -f JPWL_image_to_j2k* JPWL_j2k_to_image* )
(cd $(man_dir)/man3 && rm -f JPWL_libopenjpeg* )
endif
(cd $(man_dir)/man1 && rm -f image_to_j2k* j2k_to_image* j2k_dump* )
(cd $(man_dir)/man3 && rm -f libopenjpeg* )