diff options
Diffstat (limited to 'share/mk/install/pdf')
-rw-r--r-- | share/mk/install/pdf/_.mk | 16 | ||||
-rw-r--r-- | share/mk/install/pdf/book.mk | 33 |
2 files changed, 49 insertions, 0 deletions
diff --git a/share/mk/install/pdf/_.mk b/share/mk/install/pdf/_.mk new file mode 100644 index 0000000..2559257 --- /dev/null +++ b/share/mk/install/pdf/_.mk @@ -0,0 +1,16 @@ +# Copyright 2021-2024, Alejandro Colomar <alx@kernel.org> +# SPDX-License-Identifier: LGPL-3.0-only WITH LGPL-3.0-linking-exception + + +ifndef MAKEFILE_INSTALL_PDF_INCLUDED +MAKEFILE_INSTALL_PDF_INCLUDED := 1 + + +.PHONY: install-pdf +install-pdf: install-pdf-book; + +.PHONY: uninstall-pdf +uninstall-pdf: uninstall-pdf-book; + + +endif # include guard 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 <alx@kernel.org> +# 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 |