~ubuntu-branches/ubuntu/vivid/emscripten/vivid

« back to all changes in this revision

Viewing changes to tests/openjpeg/doc/Makefile.am

  • Committer: Package Import Robot
  • Author(s): Sylvestre Ledru
  • Date: 2013-05-02 13:11:51 UTC
  • Revision ID: package-import@ubuntu.com-20130502131151-q8dvteqr1ef2x7xz
Tags: upstream-1.4.1~20130504~adb56cb
ImportĀ upstreamĀ versionĀ 1.4.1~20130504~adb56cb

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
MAJOR = @MAJOR_NR@
 
2
MINOR = @MINOR_NR@
 
3
BUILD = @BUILD_NR@
 
4
 
 
5
if with_doxygen
 
6
docs:
 
7
        doxygen Doxyfile.dox
 
8
endif
 
9
 
 
10
doc_dir = $(datarootdir)/doc/openjpeg-$(MAJOR).$(MINOR)
 
11
 
 
12
all-local:
 
13
        @echo "" > .report.txt
 
14
        @echo "Installing: image_to_j2k.1 ${mandir}/man1" >> .report.txt
 
15
        @echo "Installing: j2k_to_image.1  ${mandir}/man1" >> .report.txt
 
16
        @echo "Installing: j2k_dump.1  ${mandir}/man1" >> .report.txt
 
17
        @echo "Installing: libopenjpeg.3  ${mandir}/man3" >> .report.txt
 
18
        @echo "Installing: LICENSE CHANGES $(doc_dir)" >> .report.txt
 
19
        @cp man/man1/* .
 
20
        @cp man/man3/* .
 
21
 
 
22
install-data-hook:
 
23
        $(INSTALL) -d $(doc_dir)
 
24
        $(INSTALL) -d ${mandir}/man1 ${mandir}/man3
 
25
if with_libjpwl
 
26
        @(cd ${mandir}/man1 && $(RM) JPWL_image_to_j2k* JPWL_j2k_to_image*)
 
27
        @(cd ${mandir}/man3 && $(RM) JPWL_libopenjpeg* )
 
28
endif
 
29
        @(cd ${mandir}/man1 && $(RM) image_to_j2k* j2k_to_image* j2k_dump* )
 
30
        @(cd ${mandir}/man3 && $(RM) libopenjpeg* )
 
31
        @gzip -f image_to_j2k.1 j2k_to_image.1 j2k_dump.1 libopenjpeg.3
 
32
        @cp image_to_j2k.1.gz j2k_to_image.1.gz j2k_dump.1.gz ${mandir}/man1
 
33
        @cp libopenjpeg.3.gz ${mandir}/man3
 
34
        @$(RM) *\.gz
 
35
if with_libjpwl
 
36
        @(cd ${mandir}/man1 && \
 
37
        $(LN_S) image_to_j2k.1.gz JPWL_image_to_j2k.1.gz && \
 
38
        $(LN_S) j2k_to_image.1.gz JPWL_j2k_to_image.1.gz)
 
39
        @(cd ${mandir}/man3 && $(LN_S) libopenjpeg.3.gz JPWL_libopenjpeg.3.gz)
 
40
endif
 
41
        @$(INSTALL) -m 644 ../LICENSE ../CHANGES $(doc_dir)
 
42
 
 
43
uninstall-hook:
 
44
        @(cd ${mandir}/man1 && $(RM) JPWL_image_to_j2k* JPWL_j2k_to_image* && \
 
45
        $(RM) image_to_j2k* j2k_to_image* j2k_dump* )
 
46
        @(cd ${mandir}/man3 && $(RM) JPWL_libopenjpeg* && \
 
47
        $(RM) libopenjpeg* )
 
48
        @(cd $(doc_dir) && $(RM) * )
 
49
        @rmdir $(doc_dir)