open-cas-linux/Makefile
Amir Haroush b02c02f1bb Makefile: fix dependencies for casadm
Signed-off-by: Amir Haroush <amir.haroush@huawei.com>
Signed-off-by: Robert Baldyga <robert.baldyga@huawei.com>
2024-09-10 14:36:43 +02:00

44 lines
685 B
Makefile

#
# Copyright(c) 2012-2022 Intel Corporation
# Copyright(c) 2024 Huawei Technologies
# SPDX-License-Identifier: BSD-3-Clause
#
PWD:=$(shell pwd)
default: all
DIRS:=modules casadm utils
.PHONY: default all clean distclean $(DIRS)
all $(MAKECMDGOALS): $(DIRS)
$(DIRS):
ifneq ($(MAKECMDGOALS),archives)
ifneq ($(MAKECMDGOALS),rpm)
ifneq ($(MAKECMDGOALS),srpm)
ifneq ($(MAKECMDGOALS),deb)
ifneq ($(MAKECMDGOALS),dsc)
cd $@ && $(MAKE) $(MAKECMDGOALS)
endif
endif
endif
endif
endif
archives:
@tools/pckgen.sh $(PWD) tar zip
rpm:
@tools/pckgen.sh $(PWD) rpm --debug
srpm:
@tools/pckgen.sh $(PWD) srpm
deb:
@tools/pckgen.sh $(PWD) deb --debug
dsc:
@tools/pckgen.sh $(PWD) dsc