summaryrefslogtreecommitdiffstats
path: root/share/mk/install/_.mk
blob: 751ab97e21983d08082ee9b7e6afabb2b0e6013e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
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