| From a442dea41491cc92e7913a036ba4e8c36f884c57 Mon Sep 17 00:00:00 2001 |
| From: oltolm <oleg.tolmatcev@gmail.com> |
| Date: Thu, 20 Sep 2018 14:33:11 +0200 |
| Subject: [PATCH] install rule |
| |
| --- |
| make/installwin.mk | 15 +++++++-------- |
| 1 file changed, 7 insertions(+), 8 deletions(-) |
| |
| diff --git a/make/installwin.mk b/make/installwin.mk |
| index 960cc51..3a61563 100644 |
| --- a/make/installwin.mk |
| +++ b/make/installwin.mk |
| @@ -1,26 +1,25 @@ |
| -DEST=$(INSTALL_DIR)/$(PACKAGE_TARNAME)-$(PACKAGE_VERSION) |
| +DEST=$(DESTDIR)/$(prefix) |
| IMPORT_LIB_NAME := $(call libname,qpdf) |
| installwin: all |
| - $(RM) -r $(INSTALL_DIR) |
| - mkdir $(INSTALL_DIR) |
| mkdir $(DEST) |
| mkdir $(DEST)/bin |
| mkdir $(DEST)/lib |
| mkdir $(DEST)/include |
| mkdir $(DEST)/include/qpdf |
| - mkdir $(DEST)/doc |
| + mkdir -p $(DEST)/share/doc/qpdf |
| + mkdir -p $(DEST)/share/licenses/qpdf |
| cp libqpdf/$(OUTPUT_DIR)/$(IMPORT_LIB_NAME) $(DEST)/lib |
| cp libqpdf/$(OUTPUT_DIR)/qpdf*.dll $(DEST)/bin |
| - perl copy_dlls libqpdf/$(OUTPUT_DIR)/qpdf*.dll $(DEST)/bin $(OBJDUMP) $(WINDOWS_WORDSIZE) |
| cp qpdf/$(OUTPUT_DIR)/qpdf.exe $(DEST)/bin |
| cp zlib-flate/$(OUTPUT_DIR)/zlib-flate.exe $(DEST)/bin |
| cp qpdf/$(OUTPUT_DIR)/fix-qdf.exe $(DEST)/bin |
| cp include/qpdf/*.h $(DEST)/include/qpdf |
| cp include/qpdf/*.hh $(DEST)/include/qpdf |
| - cp doc/stylesheet.css $(DEST)/doc |
| + cp doc/stylesheet.css $(DEST)/share/doc/qpdf |
| if [ -f doc/qpdf-manual.html ]; then \ |
| - cp doc/qpdf-manual.html $(DEST)/doc; \ |
| + cp doc/qpdf-manual.html $(DEST)/share/doc/qpdf; \ |
| fi |
| if [ -f doc/qpdf-manual.pdf ]; then \ |
| - cp doc/qpdf-manual.pdf $(DEST)/doc; \ |
| + cp doc/qpdf-manual.pdf $(DEST)/share/doc/qpdf; \ |
| fi |
| + cp Artistic-2.0 $(DEST)/share/licenses/qpdf |
| -- |
| 2.19.0.windows.1 |
| |