
- change modes to proper values - replace 'mkdir' with 'install' - remove unused files and dirs Signed-off-by: Rafal Stefanowski <rafal.stefanowski@intel.com>
43 lines
614 B
Makefile
43 lines
614 B
Makefile
#
|
|
# Copyright(c) 2012-2021 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 $(PWD) tar zip
|
|
|
|
rpm:
|
|
@tools/pckgen $(PWD) rpm
|
|
|
|
srpm:
|
|
@tools/pckgen $(PWD) srpm
|
|
|
|
deb:
|
|
@tools/pckgen $(PWD) deb
|
|
|
|
dsc:
|
|
@tools/pckgen $(PWD) dsc
|