summaryrefslogtreecommitdiffstats
path: root/lib/build.mk
blob: 57c66e5ab12f023d76255d17e5a70db6848e5e0b (plain) (blame)
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
38
39
40
# Copyright 2022 Alejandro Colomar <alx@kernel.org>
# SPDX-License-Identifier:  LGPL-3.0-or-later WITH LGPL-3.0-linking-exception


ifndef LIB_BUILD_MK_
LIB_BUILD_MK_ := 1


include $(srcdir)/lib/cmd.mk
include $(srcdir)/lib/src.mk



prefix := /usr/local


_TU_DIRS  := $(patsubst $(INCLUDEDIR)/%,$(builddir)/%/,$(TU_DIRS))


$(_TU_DIRS): | $$(dir $$(@D))
	$(info	MKDIR	$@)
	$(MKDIR) $@

$(builddir)/:
	$(info	MKDIR	$@)
	$(MKDIR) $@


.PHONY: build
build: build-dev build-lib
	@:


.PHONY: clean
clean:
	$(info	RM -rf	$(builddir))
	$(RM) -rf $(builddir)


endif  # include guard