mirror of
https://github.com/qpdf/qpdf.git
synced 2025-01-03 07:12:28 +00:00
Add "install-libs" Makefile target
Add a new make target that installs the qpdf libraries without executables or documentation.
This commit is contained in:
parent
b8e5484647
commit
d2e7f2a384
@ -105,20 +105,25 @@ define makebin
|
||||
$(CXX) $(CXXFLAGS) $(5) $(1) -o $(2) $(3) $(4)
|
||||
endef
|
||||
|
||||
# Install target
|
||||
|
||||
# NOTE: If installing any new executables, remember to update the
|
||||
# lambda layer code in build-scripts/build-appimage.
|
||||
install: all
|
||||
install-libs: build_libqpdf
|
||||
./mkinstalldirs -m 0755 $(DESTDIR)$(libdir)/pkgconfig
|
||||
./mkinstalldirs -m 0755 $(DESTDIR)$(bindir)
|
||||
./mkinstalldirs -m 0755 $(DESTDIR)$(includedir)/qpdf
|
||||
./mkinstalldirs -m 0755 $(DESTDIR)$(docdir)
|
||||
./mkinstalldirs -m 0755 $(DESTDIR)$(mandir)/man1
|
||||
$(LIBTOOL) --mode=install ./install-sh \
|
||||
libqpdf/$(OUTPUT_DIR)/libqpdf.la \
|
||||
$(DESTDIR)$(libdir)/libqpdf.la
|
||||
$(LIBTOOL) --finish $(DESTDIR)$(libdir)
|
||||
./install-sh -m 0644 include/qpdf/*.h $(DESTDIR)$(includedir)/qpdf
|
||||
./install-sh -m 0644 include/qpdf/*.hh $(DESTDIR)$(includedir)/qpdf
|
||||
./install-sh -m 0644 libqpdf.pc $(DESTDIR)$(libdir)/pkgconfig
|
||||
|
||||
# Install target
|
||||
|
||||
# NOTE: If installing any new executables, remember to update the
|
||||
# lambda layer code in build-scripts/build-appimage.
|
||||
install: all install-libs
|
||||
./mkinstalldirs -m 0755 $(DESTDIR)$(bindir)
|
||||
./mkinstalldirs -m 0755 $(DESTDIR)$(docdir)
|
||||
./mkinstalldirs -m 0755 $(DESTDIR)$(mandir)/man1
|
||||
$(LIBTOOL) --mode=install ./install-sh \
|
||||
qpdf/$(OUTPUT_DIR)/qpdf \
|
||||
$(DESTDIR)$(bindir)/qpdf
|
||||
@ -128,10 +133,7 @@ install: all
|
||||
$(LIBTOOL) --mode=install ./install-sh \
|
||||
qpdf/$(OUTPUT_DIR)/fix-qdf \
|
||||
$(DESTDIR)$(bindir)/fix-qdf
|
||||
./install-sh -m 0644 include/qpdf/*.h $(DESTDIR)$(includedir)/qpdf
|
||||
./install-sh -m 0644 include/qpdf/*.hh $(DESTDIR)$(includedir)/qpdf
|
||||
./install-sh -m 0644 doc/stylesheet.css $(DESTDIR)$(docdir)
|
||||
./install-sh -m 0644 libqpdf.pc $(DESTDIR)$(libdir)/pkgconfig
|
||||
if [ -f doc/qpdf-manual.html ]; then \
|
||||
./install-sh -m 0644 doc/qpdf-manual.html $(DESTDIR)$(docdir); \
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user