author | František Kučera <franta-hg@frantovo.cz> |
Fri, 08 May 2020 00:02:05 +0200 | |
changeset 57 | 1b21c78d8706 |
parent 55 | 2fbf53cf0782 |
permissions | -rw-r--r-- |
franta-hg@55 | 1 |
# |
franta-hg@55 | 2 |
# There exist several targets which are by default empty and which can be |
franta-hg@55 | 3 |
# used for execution of your targets. These targets are usually executed |
franta-hg@55 | 4 |
# before and after some main targets. They are: |
franta-hg@55 | 5 |
# |
franta-hg@55 | 6 |
# .build-pre: called before 'build' target |
franta-hg@55 | 7 |
# .build-post: called after 'build' target |
franta-hg@55 | 8 |
# .clean-pre: called before 'clean' target |
franta-hg@55 | 9 |
# .clean-post: called after 'clean' target |
franta-hg@55 | 10 |
# .clobber-pre: called before 'clobber' target |
franta-hg@55 | 11 |
# .clobber-post: called after 'clobber' target |
franta-hg@55 | 12 |
# .all-pre: called before 'all' target |
franta-hg@55 | 13 |
# .all-post: called after 'all' target |
franta-hg@55 | 14 |
# .help-pre: called before 'help' target |
franta-hg@55 | 15 |
# .help-post: called after 'help' target |
franta-hg@55 | 16 |
# |
franta-hg@55 | 17 |
# Targets beginning with '.' are not intended to be called on their own. |
franta-hg@55 | 18 |
# |
franta-hg@55 | 19 |
# Main targets can be executed directly, and they are: |
franta-hg@55 | 20 |
# |
franta-hg@55 | 21 |
# build build a specific configuration |
franta-hg@55 | 22 |
# clean remove built files from a configuration |
franta-hg@55 | 23 |
# clobber remove all built files |
franta-hg@55 | 24 |
# all build all configurations |
franta-hg@55 | 25 |
# help print help mesage |
franta-hg@55 | 26 |
# |
franta-hg@55 | 27 |
# Targets .build-impl, .clean-impl, .clobber-impl, .all-impl, and |
franta-hg@55 | 28 |
# .help-impl are implemented in nbproject/makefile-impl.mk. |
franta-hg@55 | 29 |
# |
franta-hg@55 | 30 |
# Available make variables: |
franta-hg@55 | 31 |
# |
franta-hg@55 | 32 |
# CND_BASEDIR base directory for relative paths |
franta-hg@55 | 33 |
# CND_DISTDIR default top distribution directory (build artifacts) |
franta-hg@55 | 34 |
# CND_BUILDDIR default top build directory (object files, ...) |
franta-hg@55 | 35 |
# CONF name of current configuration |
franta-hg@55 | 36 |
# CND_PLATFORM_${CONF} platform name (current configuration) |
franta-hg@55 | 37 |
# CND_ARTIFACT_DIR_${CONF} directory of build artifact (current configuration) |
franta-hg@55 | 38 |
# CND_ARTIFACT_NAME_${CONF} name of build artifact (current configuration) |
franta-hg@55 | 39 |
# CND_ARTIFACT_PATH_${CONF} path to build artifact (current configuration) |
franta-hg@55 | 40 |
# CND_PACKAGE_DIR_${CONF} directory of package (current configuration) |
franta-hg@55 | 41 |
# CND_PACKAGE_NAME_${CONF} name of package (current configuration) |
franta-hg@55 | 42 |
# CND_PACKAGE_PATH_${CONF} path to package (current configuration) |
franta-hg@55 | 43 |
# |
franta-hg@55 | 44 |
# NOCDDL |
franta-hg@55 | 45 |
|
franta-hg@55 | 46 |
|
franta-hg@55 | 47 |
# Environment |
franta-hg@55 | 48 |
MKDIR=mkdir |
franta-hg@55 | 49 |
CP=cp |
franta-hg@55 | 50 |
CCADMIN=CCadmin |
franta-hg@55 | 51 |
|
franta-hg@55 | 52 |
|
franta-hg@55 | 53 |
# build |
franta-hg@55 | 54 |
build: .build-post |
franta-hg@55 | 55 |
|
franta-hg@55 | 56 |
.build-pre: |
franta-hg@55 | 57 |
# Add your pre 'build' code here... |
franta-hg@55 | 58 |
|
franta-hg@55 | 59 |
.build-post: .build-impl |
franta-hg@55 | 60 |
# Add your post 'build' code here... |
franta-hg@55 | 61 |
|
franta-hg@55 | 62 |
|
franta-hg@55 | 63 |
# clean |
franta-hg@55 | 64 |
clean: .clean-post |
franta-hg@55 | 65 |
|
franta-hg@55 | 66 |
.clean-pre: |
franta-hg@55 | 67 |
# Add your pre 'clean' code here... |
franta-hg@55 | 68 |
|
franta-hg@55 | 69 |
.clean-post: .clean-impl |
franta-hg@55 | 70 |
# Add your post 'clean' code here... |
franta-hg@55 | 71 |
|
franta-hg@55 | 72 |
|
franta-hg@55 | 73 |
# clobber |
franta-hg@55 | 74 |
clobber: .clobber-post |
franta-hg@55 | 75 |
|
franta-hg@55 | 76 |
.clobber-pre: |
franta-hg@55 | 77 |
# Add your pre 'clobber' code here... |
franta-hg@55 | 78 |
|
franta-hg@55 | 79 |
.clobber-post: .clobber-impl |
franta-hg@55 | 80 |
# Add your post 'clobber' code here... |
franta-hg@55 | 81 |
|
franta-hg@55 | 82 |
|
franta-hg@55 | 83 |
# all |
franta-hg@55 | 84 |
all: .all-post |
franta-hg@55 | 85 |
|
franta-hg@55 | 86 |
.all-pre: |
franta-hg@55 | 87 |
# Add your pre 'all' code here... |
franta-hg@55 | 88 |
|
franta-hg@55 | 89 |
.all-post: .all-impl |
franta-hg@55 | 90 |
# Add your post 'all' code here... |
franta-hg@55 | 91 |
|
franta-hg@55 | 92 |
|
franta-hg@55 | 93 |
# build tests |
franta-hg@55 | 94 |
build-tests: .build-tests-post |
franta-hg@55 | 95 |
|
franta-hg@55 | 96 |
.build-tests-pre: |
franta-hg@55 | 97 |
# Add your pre 'build-tests' code here... |
franta-hg@55 | 98 |
|
franta-hg@55 | 99 |
.build-tests-post: .build-tests-impl |
franta-hg@55 | 100 |
# Add your post 'build-tests' code here... |
franta-hg@55 | 101 |
|
franta-hg@55 | 102 |
|
franta-hg@55 | 103 |
# run tests |
franta-hg@55 | 104 |
test: .test-post |
franta-hg@55 | 105 |
|
franta-hg@55 | 106 |
.test-pre: build-tests |
franta-hg@55 | 107 |
# Add your pre 'test' code here... |
franta-hg@55 | 108 |
|
franta-hg@55 | 109 |
.test-post: .test-impl |
franta-hg@55 | 110 |
# Add your post 'test' code here... |
franta-hg@55 | 111 |
|
franta-hg@55 | 112 |
|
franta-hg@55 | 113 |
# help |
franta-hg@55 | 114 |
help: .help-post |
franta-hg@55 | 115 |
|
franta-hg@55 | 116 |
.help-pre: |
franta-hg@55 | 117 |
# Add your pre 'help' code here... |
franta-hg@55 | 118 |
|
franta-hg@55 | 119 |
.help-post: .help-impl |
franta-hg@55 | 120 |
# Add your post 'help' code here... |
franta-hg@55 | 121 |
|
franta-hg@55 | 122 |
|
franta-hg@55 | 123 |
|
franta-hg@55 | 124 |
# include project implementation makefile |
franta-hg@55 | 125 |
include nbproject/Makefile-impl.mk |
franta-hg@55 | 126 |
|
franta-hg@55 | 127 |
# include project make variables |
franta-hg@55 | 128 |
include nbproject/Makefile-variables.mk |