2
0
mirror of https://github.com/checkpoint-restore/criu synced 2025-08-29 05:18:00 +00:00
criu/scripts/nmk/Makefile
Cyrill Gorcunov d7016f1475 build: nmk -- Initial import
This is initial import of NMK engine which we gonna use for
CRIU and related tools building.

It's very tiny and while here we merge it as is in future
it gonna be rather a submodule from

	https://github.com/cyrillos/nmk

An idea is to have unified build engine for most tools
we're gonna use.

Signed-off-by: Cyrill Gorcunov <gorcunov@openvz.org>
Signed-off-by: Pavel Emelyanov <xemul@virtuozzo.com>
2016-02-15 15:32:20 +03:00

41 lines
824 B
Makefile

__nmk_dir=scripts/
export __nmk_dir
include $(__nmk_dir)include.mk
MAKEFLAGS := -r -R --no-print-directory
.PHONY: all help test docs clean install
help:
@echo ' Targets:'
@echo ' install dir=<dir> - Install scripts into directory <dir>'
@echo ' docs - Build documentation'
@echo ' clean - Clean everything'
test:
$(Q) $(MAKE) -C tests all
docs:
$(Q) $(MAKE) -C Documentation all
install:
@echo 'Copying scripts into $(dir)'
@cp scripts/build.mk $(dir)
@cp scripts/include.mk $(dir)
@cp scripts/macro.mk $(dir)
@cp scripts/main.mk $(dir)
@cp scripts/rules.mk $(dir)
@cp scripts/tools.mk $(dir)
@cp scripts/utils.mk $(dir)
all:
@true
clean:
$(call msg-clean, "nmk")
$(Q) $(MAKE) -C Documentation clean
$(Q) $(MAKE) -C tests clean
.DEFAULT_GOAL ?= all