From 7f3caba522f4d24764f29d83aa2de9198bb7f01c Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Fri, 24 May 2024 06:52:22 +0200 Subject: Adding upstream version 6.8. Signed-off-by: Daniel Baumann --- share/mk/configure/directory_variables/build.mk | 12 ++++++++++ share/mk/configure/directory_variables/install.mk | 27 +++++++++++++++++++++++ share/mk/configure/directory_variables/src.mk | 20 +++++++++++++++++ 3 files changed, 59 insertions(+) create mode 100644 share/mk/configure/directory_variables/build.mk create mode 100644 share/mk/configure/directory_variables/install.mk create mode 100644 share/mk/configure/directory_variables/src.mk (limited to 'share/mk/configure/directory_variables') diff --git a/share/mk/configure/directory_variables/build.mk b/share/mk/configure/directory_variables/build.mk new file mode 100644 index 0000000..e31da03 --- /dev/null +++ b/share/mk/configure/directory_variables/build.mk @@ -0,0 +1,12 @@ +# Copyright 2021-2024, Alejandro Colomar +# SPDX-License-Identifier: LGPL-3.0-only WITH LGPL-3.0-linking-exception + + +ifndef MAKEFILE_CONFIGURE_DIRECTORY_VARIABLES_BUILD_INCLUDED +MAKEFILE_CONFIGURE_DIRECTORY_VARIABLES_BUILD_INCLUDED := 1 + + +builddir := .tmp + + +endif # include guard diff --git a/share/mk/configure/directory_variables/install.mk b/share/mk/configure/directory_variables/install.mk new file mode 100644 index 0000000..cd5fda6 --- /dev/null +++ b/share/mk/configure/directory_variables/install.mk @@ -0,0 +1,27 @@ +# Copyright 2021-2024, Alejandro Colomar +# SPDX-License-Identifier: LGPL-3.0-only WITH LGPL-3.0-linking-exception + + +ifndef MAKEFILE_CONFIGURE_DIRECTORY_VARIABLES_INSTALL_INCLUDED +MAKEFILE_CONFIGURE_DIRECTORY_VARIABLES_INSTALL_INCLUDED := 1 + + +include $(MAKEFILEDIR)/configure/directory_variables/src.mk + + +DESTDIR := +prefix := /usr/local +datarootdir := $(prefix)/share +mandir := $(datarootdir)/man +docdir := $(datarootdir)/doc +htmldir := $(docdir)/html/man +pdfdir := $(docdir)/pdf + + +$(foreach s, $(MANSECTIONS), \ + $(eval man$(s)dir := $(mandir)/man$(s))) +$(foreach s, $(MANSECTIONS), \ + $(eval man$(s)ext := .$(s))) + + +endif # include guard diff --git a/share/mk/configure/directory_variables/src.mk b/share/mk/configure/directory_variables/src.mk new file mode 100644 index 0000000..d86cbf1 --- /dev/null +++ b/share/mk/configure/directory_variables/src.mk @@ -0,0 +1,20 @@ +# Copyright 2021-2024, Alejandro Colomar +# SPDX-License-Identifier: LGPL-3.0-only WITH LGPL-3.0-linking-exception + + +ifndef MAKEFILE_CONFIGURE_DIRECTORY_VARIABLES_SRC_INCLUDED +MAKEFILE_CONFIGURE_DIRECTORY_VARIABLES_SRC_INCLUDED := 1 + + +SYSCONFDIR := $(srcdir)/etc +MANDIR := $(srcdir)/man + + +MANSECTIONS := $(patsubst $(MANDIR)/man%/, %, $(wildcard $(MANDIR)/man*/)) + + +$(foreach s, $(MANSECTIONS), \ + $(eval MAN$(s)DIR := $(MANDIR)/man$(s))) + + +endif # include guard -- cgit v1.2.3