diff options
| author | Winfried <szukw000@arcor.de> | 2011-01-07 03:20:58 +0000 |
|---|---|---|
| committer | Winfried <szukw000@arcor.de> | 2011-01-07 03:20:58 +0000 |
| commit | 7441340ab5422ce2c85f4b0e42f44b64cd855445 (patch) | |
| tree | cb78e3e7282a857f01d9db5e420ef22253649164 /libopenjpeg/Makefile.am | |
| parent | 50b3b5c9912dee7c8038d34da0e966d72906d6f7 (diff) | |
changed report code in Makefile.am
Diffstat (limited to 'libopenjpeg/Makefile.am')
| -rw-r--r-- | libopenjpeg/Makefile.am | 54 |
1 files changed, 42 insertions, 12 deletions
diff --git a/libopenjpeg/Makefile.am b/libopenjpeg/Makefile.am index 30a2b815..b2d2490b 100644 --- a/libopenjpeg/Makefile.am +++ b/libopenjpeg/Makefile.am @@ -43,21 +43,51 @@ headerdir = openjpeg-$(MAJOR).$(MINOR) all-local: @$(INSTALL) -d ../bin - @cp -P .libs/libopenjpeg.* ../bin/ - @rm -f ../bin/libopenjpeg.la* - @rm -rf .report_lib - @$(INSTALL) -d .report_lib - @cp -P .libs/libopenjpeg.* .report_lib - @rm -f .report_lib/libopenjpeg.lai + @rm -rf .report_dir + @$(INSTALL) -d .report_dir +if build_so +if with_sharedlibs + @find .libs -type f -name "*\.so*" -exec cp -P {} .report_dir \; + @find .libs -type l -name "*\.so*" -exec cp -P {} .report_dir \; +else !with_sharedlibs + @find .libs -type f -name "*\.a" -exec cp -P {} .report_dir \; +endif !with_sharedlibs +endif +if build_dll +if with_sharedlibs + @find .libs -type f -name "*\.dll" -exec cp -P {} .report_dir \; + @find .libs -type f -name "*\.a" -exec cp -P {} .report_dir \; +else !with_sharedlibs + @find .libs -type f -name "*\.a" -exec cp -P {} .report_dir \; +endif !with_sharedlibs +endif +if build_dylib +if with_sharedlibs + @find .libs -type f -name "*\.dylib" -exec cp -P {} .report_dir \; +else !with_sharedlibs + @find .libs -type l -name "*\.a" -exec cp -P {} .report_dir \; +endif !with_sharedlibs +endif + @cp -a .report_dir/* ../bin @echo "" > .report.txt @echo "Installing: ${prefix}/include/${headerdir}/" >> .report.txt @echo "Installing: ${prefix}/include/${headerdir}/openjpeg.h" >> .report.txt - @(cd .report_lib; \ - l=`ls --file-type`; \ - for f in $$l ; do \ - echo "Installing: ${prefix}/lib/$$f" >> ../.report.txt ; \ - done) - @rm -rf .report_lib + @echo "Installing: ${prefix}/lib/libopenjpeg.la" >> .report.txt + @(cd .report_dir; \ + for file in `ls *.dll 2> /dev/null` ; do \ + echo "Installing: ${prefix}/bin/$${file}" >> ../.report.txt ; \ + done ; \ + for file in `ls *.a 2> /dev/null` ; do \ + echo "Installing: ${prefix}/lib/$${file}" >> ../.report.txt ; \ + done ; \ + for file in `ls *.so* 2> /dev/null` ; do \ + echo "Installing: ${prefix}/lib/$${file}" >> ../.report.txt ; \ + done ; \ + for file in `ls *.dylib 2> /dev/null` ; do \ + echo "Installing: ${prefix}/lib/$${file}" >> ../.report.txt ; \ + done \ + ) + @rm -rf .report_dir install-data-hook: (cd $(DESTDIR)${prefix}/include && rm -f openjpeg.h) |
