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