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 | 105 | $(CXX) $(CXXFLAGS) $(5) $(1) -o $(2) $(3) $(4) |
| 106 | 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 | 119 | # Install target |
| 109 | 120 | |
| 110 | 121 | # NOTE: If installing any new executables, remember to update the |
| 111 | 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 | 124 | ./mkinstalldirs -m 0755 $(DESTDIR)$(bindir) |
| 115 | - ./mkinstalldirs -m 0755 $(DESTDIR)$(includedir)/qpdf | |
| 116 | 125 | ./mkinstalldirs -m 0755 $(DESTDIR)$(docdir) |
| 117 | 126 | ./mkinstalldirs -m 0755 $(DESTDIR)$(mandir)/man1 |
| 118 | 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 | 128 | qpdf/$(OUTPUT_DIR)/qpdf \ |
| 124 | 129 | $(DESTDIR)$(bindir)/qpdf |
| 125 | 130 | $(LIBTOOL) --mode=install ./install-sh \ |
| ... | ... | @@ -128,10 +133,7 @@ install: all |
| 128 | 133 | $(LIBTOOL) --mode=install ./install-sh \ |
| 129 | 134 | qpdf/$(OUTPUT_DIR)/fix-qdf \ |
| 130 | 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 | 136 | ./install-sh -m 0644 doc/stylesheet.css $(DESTDIR)$(docdir) |
| 134 | - ./install-sh -m 0644 libqpdf.pc $(DESTDIR)$(libdir)/pkgconfig | |
| 135 | 137 | if [ -f doc/qpdf-manual.html ]; then \ |
| 136 | 138 | ./install-sh -m 0644 doc/qpdf-manual.html $(DESTDIR)$(docdir); \ |
| 137 | 139 | fi | ... | ... |