From 3d08cd331c1adcf0d917392f7e527b3f00511748 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Fri, 24 May 2024 06:52:22 +0200 Subject: Merging upstream version 6.8. Signed-off-by: Daniel Baumann --- share/mk/install/pdf/book.mk | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 share/mk/install/pdf/book.mk (limited to 'share/mk/install/pdf/book.mk') diff --git a/share/mk/install/pdf/book.mk b/share/mk/install/pdf/book.mk new file mode 100644 index 0000000..083bce2 --- /dev/null +++ b/share/mk/install/pdf/book.mk @@ -0,0 +1,33 @@ +# Copyright 2021-2024, Alejandro Colomar +# SPDX-License-Identifier: LGPL-3.0-only WITH LGPL-3.0-linking-exception + + +ifndef MAKEFILE_INSTALL_PDF_BOOK_INCLUDED +MAKEFILE_INSTALL_PDF_BOOK_INCLUDED := 1 + + +include $(MAKEFILEDIR)/build/pdf/book/_.mk +include $(MAKEFILEDIR)/configure/build-depends/coreutils/install.mk +include $(MAKEFILEDIR)/configure/directory_variables/install.mk + + +_pdfdir := $(DESTDIR)$(pdfdir) + + +_pdf_book := $(patsubst $(_PDFDIR)/%,$(_pdfdir)/%,$(_PDF_BOOK)) +_pdf_book_rm := $(addsuffix -rm,$(wildcard $(_pdf_book))) + + +$(_pdf_book): $(_pdfdir)/%: $(_PDFDIR)/% $(MK) | $$(@D)/ + $(info $(INFO_)INSTALL $@) + $(INSTALL_DATA) -T $< $@ + + +.PHONY: install-pdf-book +install-pdf-book: $(_pdf_book); + +.PHONY: uninstall-pdf-book +uninstall-pdf-book: $(_pdf_book_rm); + + +endif # include guard -- cgit v1.2.3