criu/scripts/nmk/Makefile
Kir Kolyshkin 15a757f6be Makefiles: remove @true
Apparently @true was used as a rule for any target which should have
a non-empty rule doing nothing. For this, there's a "<target>: ;"
syntax, let's use this and eliminate an unnecessary fork/exec :)

Signed-off-by: Kir Kolyshkin <kir@openvz.org>
Signed-off-by: Andrei Vagin <avagin@virtuozzo.com>
2017-03-15 09:36:08 +03:00

39 lines
819 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: ;
clean:
$(call msg-clean, "nmk")
$(Q) $(MAKE) -C Documentation clean
$(Q) $(MAKE) -C tests clean
.DEFAULT_GOAL ?= all