open-cas-linux/Makefile
Rafal Stefanowski 44b4020cc1 Update copyright statements
Signed-off-by: Rafal Stefanowski <rafal.stefanowski@intel.com>
2020-05-04 16:47:38 +02:00

33 lines
488 B
Makefile

#
# Copyright(c) 2012-2020 Intel Corporation
# SPDX-License-Identifier: BSD-3-Clause-Clear
#
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)
cd $@ && $(MAKE) $(MAKECMDGOALS)
endif
endif
endif
archives:
@utils/pckgen $(PWD) tar zip
rpm:
@utils/pckgen $(PWD) rpm
srpm:
@utils/pckgen $(PWD) srpm