c++/sql-dk/nbproject/Makefile-impl.mk
author František Kučera <franta-hg@frantovo.cz>
Fri, 05 Jan 2018 23:53:23 +0100
branchv_0
changeset 230 8bae71482622
permissions -rw-r--r--
c++ version skeleton
franta-hg@230
     1
# 
franta-hg@230
     2
# Generated Makefile - do not edit! 
franta-hg@230
     3
# 
franta-hg@230
     4
# Edit the Makefile in the project folder instead (../Makefile). Each target
franta-hg@230
     5
# has a pre- and a post- target defined where you can add customization code.
franta-hg@230
     6
#
franta-hg@230
     7
# This makefile implements macros and targets common to all configurations.
franta-hg@230
     8
#
franta-hg@230
     9
# NOCDDL
franta-hg@230
    10
franta-hg@230
    11
franta-hg@230
    12
# Building and Cleaning subprojects are done by default, but can be controlled with the SUB
franta-hg@230
    13
# macro. If SUB=no, subprojects will not be built or cleaned. The following macro
franta-hg@230
    14
# statements set BUILD_SUB-CONF and CLEAN_SUB-CONF to .build-reqprojects-conf
franta-hg@230
    15
# and .clean-reqprojects-conf unless SUB has the value 'no'
franta-hg@230
    16
SUB_no=NO
franta-hg@230
    17
SUBPROJECTS=${SUB_${SUB}}
franta-hg@230
    18
BUILD_SUBPROJECTS_=.build-subprojects
franta-hg@230
    19
BUILD_SUBPROJECTS_NO=
franta-hg@230
    20
BUILD_SUBPROJECTS=${BUILD_SUBPROJECTS_${SUBPROJECTS}}
franta-hg@230
    21
CLEAN_SUBPROJECTS_=.clean-subprojects
franta-hg@230
    22
CLEAN_SUBPROJECTS_NO=
franta-hg@230
    23
CLEAN_SUBPROJECTS=${CLEAN_SUBPROJECTS_${SUBPROJECTS}}
franta-hg@230
    24
franta-hg@230
    25
franta-hg@230
    26
# Project Name
franta-hg@230
    27
PROJECTNAME=sql-dk
franta-hg@230
    28
franta-hg@230
    29
# Active Configuration
franta-hg@230
    30
DEFAULTCONF=Debug
franta-hg@230
    31
CONF=${DEFAULTCONF}
franta-hg@230
    32
franta-hg@230
    33
# All Configurations
franta-hg@230
    34
ALLCONFS=Debug Release 
franta-hg@230
    35
franta-hg@230
    36
franta-hg@230
    37
# build
franta-hg@230
    38
.build-impl: .build-pre .validate-impl .depcheck-impl
franta-hg@230
    39
	@#echo "=> Running $@... Configuration=$(CONF)"
franta-hg@230
    40
	"${MAKE}" -f nbproject/Makefile-${CONF}.mk QMAKE=${QMAKE} SUBPROJECTS=${SUBPROJECTS} .build-conf
franta-hg@230
    41
franta-hg@230
    42
franta-hg@230
    43
# clean
franta-hg@230
    44
.clean-impl: .clean-pre .validate-impl .depcheck-impl
franta-hg@230
    45
	@#echo "=> Running $@... Configuration=$(CONF)"
franta-hg@230
    46
	"${MAKE}" -f nbproject/Makefile-${CONF}.mk QMAKE=${QMAKE} SUBPROJECTS=${SUBPROJECTS} .clean-conf
franta-hg@230
    47
franta-hg@230
    48
franta-hg@230
    49
# clobber 
franta-hg@230
    50
.clobber-impl: .clobber-pre .depcheck-impl
franta-hg@230
    51
	@#echo "=> Running $@..."
franta-hg@230
    52
	for CONF in ${ALLCONFS}; \
franta-hg@230
    53
	do \
franta-hg@230
    54
	    "${MAKE}" -f nbproject/Makefile-$${CONF}.mk QMAKE=${QMAKE} SUBPROJECTS=${SUBPROJECTS} .clean-conf; \
franta-hg@230
    55
	done
franta-hg@230
    56
franta-hg@230
    57
# all 
franta-hg@230
    58
.all-impl: .all-pre .depcheck-impl
franta-hg@230
    59
	@#echo "=> Running $@..."
franta-hg@230
    60
	for CONF in ${ALLCONFS}; \
franta-hg@230
    61
	do \
franta-hg@230
    62
	    "${MAKE}" -f nbproject/Makefile-$${CONF}.mk QMAKE=${QMAKE} SUBPROJECTS=${SUBPROJECTS} .build-conf; \
franta-hg@230
    63
	done
franta-hg@230
    64
franta-hg@230
    65
# build tests
franta-hg@230
    66
.build-tests-impl: .build-impl .build-tests-pre
franta-hg@230
    67
	@#echo "=> Running $@... Configuration=$(CONF)"
franta-hg@230
    68
	"${MAKE}" -f nbproject/Makefile-${CONF}.mk SUBPROJECTS=${SUBPROJECTS} .build-tests-conf
franta-hg@230
    69
franta-hg@230
    70
# run tests
franta-hg@230
    71
.test-impl: .build-tests-impl .test-pre
franta-hg@230
    72
	@#echo "=> Running $@... Configuration=$(CONF)"
franta-hg@230
    73
	"${MAKE}" -f nbproject/Makefile-${CONF}.mk SUBPROJECTS=${SUBPROJECTS} .test-conf
franta-hg@230
    74
franta-hg@230
    75
# dependency checking support
franta-hg@230
    76
.depcheck-impl:
franta-hg@230
    77
	@echo "# This code depends on make tool being used" >.dep.inc
franta-hg@230
    78
	@if [ -n "${MAKE_VERSION}" ]; then \
franta-hg@230
    79
	    echo "DEPFILES=\$$(wildcard \$$(addsuffix .d, \$${OBJECTFILES} \$${TESTOBJECTFILES}))" >>.dep.inc; \
franta-hg@230
    80
	    echo "ifneq (\$${DEPFILES},)" >>.dep.inc; \
franta-hg@230
    81
	    echo "include \$${DEPFILES}" >>.dep.inc; \
franta-hg@230
    82
	    echo "endif" >>.dep.inc; \
franta-hg@230
    83
	else \
franta-hg@230
    84
	    echo ".KEEP_STATE:" >>.dep.inc; \
franta-hg@230
    85
	    echo ".KEEP_STATE_FILE:.make.state.\$${CONF}" >>.dep.inc; \
franta-hg@230
    86
	fi
franta-hg@230
    87
franta-hg@230
    88
# configuration validation
franta-hg@230
    89
.validate-impl:
franta-hg@230
    90
	@if [ ! -f nbproject/Makefile-${CONF}.mk ]; \
franta-hg@230
    91
	then \
franta-hg@230
    92
	    echo ""; \
franta-hg@230
    93
	    echo "Error: can not find the makefile for configuration '${CONF}' in project ${PROJECTNAME}"; \
franta-hg@230
    94
	    echo "See 'make help' for details."; \
franta-hg@230
    95
	    echo "Current directory: " `pwd`; \
franta-hg@230
    96
	    echo ""; \
franta-hg@230
    97
	fi
franta-hg@230
    98
	@if [ ! -f nbproject/Makefile-${CONF}.mk ]; \
franta-hg@230
    99
	then \
franta-hg@230
   100
	    exit 1; \
franta-hg@230
   101
	fi
franta-hg@230
   102
franta-hg@230
   103
franta-hg@230
   104
# help
franta-hg@230
   105
.help-impl: .help-pre
franta-hg@230
   106
	@echo "This makefile supports the following configurations:"
franta-hg@230
   107
	@echo "    ${ALLCONFS}"
franta-hg@230
   108
	@echo ""
franta-hg@230
   109
	@echo "and the following targets:"
franta-hg@230
   110
	@echo "    build  (default target)"
franta-hg@230
   111
	@echo "    clean"
franta-hg@230
   112
	@echo "    clobber"
franta-hg@230
   113
	@echo "    all"
franta-hg@230
   114
	@echo "    help"
franta-hg@230
   115
	@echo ""
franta-hg@230
   116
	@echo "Makefile Usage:"
franta-hg@230
   117
	@echo "    make [CONF=<CONFIGURATION>] [SUB=no] build"
franta-hg@230
   118
	@echo "    make [CONF=<CONFIGURATION>] [SUB=no] clean"
franta-hg@230
   119
	@echo "    make [SUB=no] clobber"
franta-hg@230
   120
	@echo "    make [SUB=no] all"
franta-hg@230
   121
	@echo "    make help"
franta-hg@230
   122
	@echo ""
franta-hg@230
   123
	@echo "Target 'build' will build a specific configuration and, unless 'SUB=no',"
franta-hg@230
   124
	@echo "    also build subprojects."
franta-hg@230
   125
	@echo "Target 'clean' will clean a specific configuration and, unless 'SUB=no',"
franta-hg@230
   126
	@echo "    also clean subprojects."
franta-hg@230
   127
	@echo "Target 'clobber' will remove all built files from all configurations and,"
franta-hg@230
   128
	@echo "    unless 'SUB=no', also from subprojects."
franta-hg@230
   129
	@echo "Target 'all' will will build all configurations and, unless 'SUB=no',"
franta-hg@230
   130
	@echo "    also build subprojects."
franta-hg@230
   131
	@echo "Target 'help' prints this message."
franta-hg@230
   132
	@echo ""
franta-hg@230
   133