followup autotools fixes, adding DESTDIR support
This commit is contained in:
parent
c4252ed824
commit
51f7cc6874
10
Makefile.am
10
Makefile.am
|
@ -17,12 +17,12 @@ install-data-hook:
|
||||||
cat $${dir}/.report.txt ; \
|
cat $${dir}/.report.txt ; \
|
||||||
done
|
done
|
||||||
@echo ""
|
@echo ""
|
||||||
@echo "Installing: libopenjpeg1.pc $(pkgconf_dir)"
|
@echo "Installing: libopenjpeg1.pc $(DESTDIR)$(pkgconf_dir)"
|
||||||
@echo ""
|
@echo ""
|
||||||
@$(INSTALL) -d $(pkgconf_dir)
|
@$(INSTALL) -d $(DESTDIR)$(pkgconf_dir)
|
||||||
@cp libopenjpeg1.pc $(pkgconf_dir)/libopenjpeg1.pc
|
@cp libopenjpeg1.pc $(DESTDIR)$(pkgconf_dir)/libopenjpeg1.pc
|
||||||
@(cd $(pkgconf_dir) && $(RM) libopenjpeg.pc && \
|
@(cd $(DESTDIR)$(pkgconf_dir) && $(RM) libopenjpeg.pc && \
|
||||||
$(LN_S) libopenjpeg1.pc libopenjpeg.pc)
|
$(LN_S) libopenjpeg1.pc libopenjpeg.pc)
|
||||||
|
|
||||||
uninstall-hook:
|
uninstall-hook:
|
||||||
@(cd $(pkgconf_dir) && $(RM) libopenjpeg.pc libopenjpeg1.pc)
|
@(cd $(DESTDIR)$(pkgconf_dir) && $(RM) libopenjpeg.pc libopenjpeg1.pc)
|
||||||
|
|
|
@ -20,30 +20,30 @@ all-local:
|
||||||
@cp man/man3/* .
|
@cp man/man3/* .
|
||||||
|
|
||||||
install-data-hook:
|
install-data-hook:
|
||||||
$(INSTALL) -d $(doc_dir)
|
$(INSTALL) -d $(DESTDIR)$(doc_dir)
|
||||||
$(INSTALL) -d ${mandir}/man1 ${mandir}/man3
|
$(INSTALL) -d $(DESTDIR)${mandir}/man1 $(DESTDIR)${mandir}/man3
|
||||||
if with_libjpwl
|
if with_libjpwl
|
||||||
@(cd ${mandir}/man1 && $(RM) JPWL_image_to_j2k* JPWL_j2k_to_image*)
|
@(cd $(DESTDIR)${mandir}/man1 && $(RM) JPWL_image_to_j2k* JPWL_j2k_to_image*)
|
||||||
@(cd ${mandir}/man3 && $(RM) JPWL_libopenjpeg* )
|
@(cd $(DESTDIR)${mandir}/man3 && $(RM) JPWL_libopenjpeg* )
|
||||||
endif
|
endif
|
||||||
@(cd ${mandir}/man1 && $(RM) image_to_j2k* j2k_to_image* j2k_dump* )
|
@(cd $(DESTDIR)${mandir}/man1 && $(RM) image_to_j2k* j2k_to_image* j2k_dump* )
|
||||||
@(cd ${mandir}/man3 && $(RM) libopenjpeg* )
|
@(cd $(DESTDIR)${mandir}/man3 && $(RM) libopenjpeg* )
|
||||||
@gzip -f image_to_j2k.1 j2k_to_image.1 j2k_dump.1 libopenjpeg.3
|
@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 ${mandir}/man1
|
@cp image_to_j2k.1.gz j2k_to_image.1.gz j2k_dump.1.gz $(DESTDIR)${mandir}/man1
|
||||||
@cp libopenjpeg.3.gz ${mandir}/man3
|
@cp libopenjpeg.3.gz $(DESTDIR)${mandir}/man3
|
||||||
@$(RM) *\.gz
|
@$(RM) *\.gz
|
||||||
if with_libjpwl
|
if with_libjpwl
|
||||||
@(cd ${mandir}/man1 && \
|
@(cd $(DESTDIR)${mandir}/man1 && \
|
||||||
$(LN_S) image_to_j2k.1.gz JPWL_image_to_j2k.1.gz && \
|
$(LN_S) image_to_j2k.1.gz JPWL_image_to_j2k.1.gz && \
|
||||||
$(LN_S) j2k_to_image.1.gz JPWL_j2k_to_image.1.gz)
|
$(LN_S) j2k_to_image.1.gz JPWL_j2k_to_image.1.gz)
|
||||||
@(cd ${mandir}/man3 && $(LN_S) libopenjpeg.3.gz JPWL_libopenjpeg.3.gz)
|
@(cd ${mandir}/man3 && $(LN_S) libopenjpeg.3.gz JPWL_libopenjpeg.3.gz)
|
||||||
endif
|
endif
|
||||||
@$(INSTALL) -m 644 ../LICENSE ../CHANGES $(doc_dir)
|
@$(INSTALL) -m 644 ../LICENSE ../CHANGES $(DESTDIR)$(doc_dir)
|
||||||
|
|
||||||
uninstall-hook:
|
uninstall-hook:
|
||||||
@(cd ${mandir}/man1 && $(RM) JPWL_image_to_j2k* JPWL_j2k_to_image* && \
|
@(cd $(DESTDIR)${mandir}/man1 && $(RM) JPWL_image_to_j2k* JPWL_j2k_to_image* && \
|
||||||
$(RM) image_to_j2k* j2k_to_image* j2k_dump* )
|
$(RM) image_to_j2k* j2k_to_image* j2k_dump* )
|
||||||
@(cd ${mandir}/man3 && $(RM) JPWL_libopenjpeg* && \
|
@(cd $(DESTDIR)${mandir}/man3 && $(RM) JPWL_libopenjpeg* && \
|
||||||
$(RM) libopenjpeg* )
|
$(RM) libopenjpeg* )
|
||||||
@(cd $(doc_dir) && $(RM) * )
|
@(cd $(DESTDIR)$(doc_dir) && $(RM) * )
|
||||||
@rmdir $(doc_dir)
|
@rmdir $(DESTDIR)$(doc_dir)
|
||||||
|
|
Loading…
Reference in New Issue