Commit d2e7f2a384788c6af77aea79e2f6bc8b5b0b4527
Committed by
Jay Berkenbilt
1 parent
b8e54846
Add "install-libs" Makefile target
Add a new make target that installs the qpdf libraries without executables or documentation.
Showing
1 changed file
with
12 additions
and
10 deletions
make/libtool.mk
| @@ -105,21 +105,26 @@ define makebin | @@ -105,21 +105,26 @@ define makebin | ||
| 105 | $(CXX) $(CXXFLAGS) $(5) $(1) -o $(2) $(3) $(4) | 105 | $(CXX) $(CXXFLAGS) $(5) $(1) -o $(2) $(3) $(4) |
| 106 | endef | 106 | endef |
| 107 | 107 | ||
| 108 | +install-libs: build_libqpdf | ||
| 109 | + ./mkinstalldirs -m 0755 $(DESTDIR)$(libdir)/pkgconfig | ||
| 110 | + ./mkinstalldirs -m 0755 $(DESTDIR)$(includedir)/qpdf | ||
| 111 | + $(LIBTOOL) --mode=install ./install-sh \ | ||
| 112 | + libqpdf/$(OUTPUT_DIR)/libqpdf.la \ | ||
| 113 | + $(DESTDIR)$(libdir)/libqpdf.la | ||
| 114 | + $(LIBTOOL) --finish $(DESTDIR)$(libdir) | ||
| 115 | + ./install-sh -m 0644 include/qpdf/*.h $(DESTDIR)$(includedir)/qpdf | ||
| 116 | + ./install-sh -m 0644 include/qpdf/*.hh $(DESTDIR)$(includedir)/qpdf | ||
| 117 | + ./install-sh -m 0644 libqpdf.pc $(DESTDIR)$(libdir)/pkgconfig | ||
| 118 | + | ||
| 108 | # Install target | 119 | # Install target |
| 109 | 120 | ||
| 110 | # NOTE: If installing any new executables, remember to update the | 121 | # NOTE: If installing any new executables, remember to update the |
| 111 | # lambda layer code in build-scripts/build-appimage. | 122 | # lambda layer code in build-scripts/build-appimage. |
| 112 | -install: all | ||
| 113 | - ./mkinstalldirs -m 0755 $(DESTDIR)$(libdir)/pkgconfig | 123 | +install: all install-libs |
| 114 | ./mkinstalldirs -m 0755 $(DESTDIR)$(bindir) | 124 | ./mkinstalldirs -m 0755 $(DESTDIR)$(bindir) |
| 115 | - ./mkinstalldirs -m 0755 $(DESTDIR)$(includedir)/qpdf | ||
| 116 | ./mkinstalldirs -m 0755 $(DESTDIR)$(docdir) | 125 | ./mkinstalldirs -m 0755 $(DESTDIR)$(docdir) |
| 117 | ./mkinstalldirs -m 0755 $(DESTDIR)$(mandir)/man1 | 126 | ./mkinstalldirs -m 0755 $(DESTDIR)$(mandir)/man1 |
| 118 | $(LIBTOOL) --mode=install ./install-sh \ | 127 | $(LIBTOOL) --mode=install ./install-sh \ |
| 119 | - libqpdf/$(OUTPUT_DIR)/libqpdf.la \ | ||
| 120 | - $(DESTDIR)$(libdir)/libqpdf.la | ||
| 121 | - $(LIBTOOL) --finish $(DESTDIR)$(libdir) | ||
| 122 | - $(LIBTOOL) --mode=install ./install-sh \ | ||
| 123 | qpdf/$(OUTPUT_DIR)/qpdf \ | 128 | qpdf/$(OUTPUT_DIR)/qpdf \ |
| 124 | $(DESTDIR)$(bindir)/qpdf | 129 | $(DESTDIR)$(bindir)/qpdf |
| 125 | $(LIBTOOL) --mode=install ./install-sh \ | 130 | $(LIBTOOL) --mode=install ./install-sh \ |
| @@ -128,10 +133,7 @@ install: all | @@ -128,10 +133,7 @@ install: all | ||
| 128 | $(LIBTOOL) --mode=install ./install-sh \ | 133 | $(LIBTOOL) --mode=install ./install-sh \ |
| 129 | qpdf/$(OUTPUT_DIR)/fix-qdf \ | 134 | qpdf/$(OUTPUT_DIR)/fix-qdf \ |
| 130 | $(DESTDIR)$(bindir)/fix-qdf | 135 | $(DESTDIR)$(bindir)/fix-qdf |
| 131 | - ./install-sh -m 0644 include/qpdf/*.h $(DESTDIR)$(includedir)/qpdf | ||
| 132 | - ./install-sh -m 0644 include/qpdf/*.hh $(DESTDIR)$(includedir)/qpdf | ||
| 133 | ./install-sh -m 0644 doc/stylesheet.css $(DESTDIR)$(docdir) | 136 | ./install-sh -m 0644 doc/stylesheet.css $(DESTDIR)$(docdir) |
| 134 | - ./install-sh -m 0644 libqpdf.pc $(DESTDIR)$(libdir)/pkgconfig | ||
| 135 | if [ -f doc/qpdf-manual.html ]; then \ | 137 | if [ -f doc/qpdf-manual.html ]; then \ |
| 136 | ./install-sh -m 0644 doc/qpdf-manual.html $(DESTDIR)$(docdir); \ | 138 | ./install-sh -m 0644 doc/qpdf-manual.html $(DESTDIR)$(docdir); \ |
| 137 | fi | 139 | fi |