open-cas-linux/Makefile
Rafal Stefanowski 91f5d497ef copyright/license: Add missing file extensions
Proper file extensions help 'copyright header checker' find files
that should contain copyright info. Extensions also clearly indicate
file type, and help to fit in with the file naming convention.

Signed-off-by: Rafal Stefanowski <rafal.stefanowski@intel.com>
2022-09-07 15:23:11 +02:00

43 lines
645 B
Makefile

#
# Copyright(c) 2012-2022 Intel Corporation
# 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