summaryrefslogtreecommitdiffstats
path: root/share/mk/install/_.mk
diff options
context:
space:
mode:
Diffstat (limited to 'share/mk/install/_.mk')
-rw-r--r--share/mk/install/_.mk37
1 files changed, 37 insertions, 0 deletions
diff --git a/share/mk/install/_.mk b/share/mk/install/_.mk
new file mode 100644
index 0000000..751ab97
--- /dev/null
+++ b/share/mk/install/_.mk
@@ -0,0 +1,37 @@
+########################################################################
+# Copyright 2021-2022, Alejandro Colomar <alx@kernel.org>
+# SPDX-License-Identifier: GPL-3.0-or-later
+########################################################################
+
+
+ifndef MAKEFILE_INSTALL_INCLUDED
+MAKEFILE_INSTALL_INCLUDED := 1
+
+
+include $(MAKEFILEDIR)/cmd.mk
+
+
+DESTDIR :=
+prefix := /usr/local
+
+datarootdir := $(prefix)/share
+docdir := $(datarootdir)/doc
+
+
+$(DESTDIR)%/:
+ +$(info INSTALL $@)
+ +$(INSTALL_DIR) $@
+
+%-rm:
+ $(info RM $*)
+ $(RM) $*
+
+
+.PHONY: install
+install: install-man;
+
+.PHONY: uninstall
+uninstall: uninstall-man;
+
+
+endif # include guard