open-cas-linux/Makefile
Robert Baldyga 0ad78a118f
Merge pull request #421 from rafalste/rpm_debug_symbols
Create debug symbols for RPM
2020-06-08 09:28:22 +02:00

33 lines
504 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 --debug
srpm:
@utils/pckgen $(PWD) srpm --debug