Commit 7074454f authored by Christian Dietrich's avatar Christian Dietrich
Browse files

experiments: makefile template

parent 23bab00b
Pipeline #2993 passed with stage
in 0 seconds
......@@ -5,47 +5,20 @@ POSTGRESQL = ${CLANG_HASH}/hash-projects/postgresql
CPYTHON = ${CLANG_HASH}/hash-projects/cpython
MBEDTLS = ${CLANG_HASH}/hash-projects/mbedtls --project-ref development
all:
@echo "Look at the makefile"
INC = ./incremental_rebuild.py -s -d ../versuchung-data --jobs $(JOBS) \
-vv --clang_hash-clone-url ${CLANG_HASH} --dummy
inc_postgres_normal:
${INC} --project-clone-url ${POSTGRESQL} --mode normal
inc_postgres_ccache:
${INC} --project-clone-url ${POSTGRESQL} --mode ccache
inc_postgres_hash:
${INC} --project-clone-url ${POSTGRESQL} --mode clang-hash
inc_musl_normal:
${INC} --project-clone-url ${MUSL} --mode normal
inc_musl_ccache:
${INC} --project-clone-url ${MUSL} --mode ccache
inc_musl_hash:
${INC} --project-clone-url ${MUSL} --mode clang-hash
inc_cpython_normal:
${INC} --project-clone-url ${CPYTHON} --mode normal
inc_cpython_ccache:
${INC} --project-clone-url ${CPYTHON} --mode ccache
inc_cpython_hash:
${INC} --project-clone-url ${CPYTHON} --mode clang-hash
define inc_template
inc_$(shell echo $1 | tr '[:upper:]' '[:lower:]' )_$2:
./incremental_rebuild.py -s \
-d ../versuchung-data --jobs $(JOBS) \
-v --clang_hash-clone-url ${CLANG_HASH} \
--project-clone-url ${$1} --mode $2
inc_mbedtls_normal:
${INC} --project-clone-url ${MBEDTLS} --mode normal
inc_$(shell echo $1 | tr '[:upper:]' '[:lower:]' ): inc_$(shell echo $1 | tr '[:upper:]' '[:lower:]' )_$2
endef
inc_mbedtls_ccache:
${INC} --project-clone-url ${MBEDTLS} --mode ccache
$(foreach project,MUSL POSTGRESQL CPYTHON MBEDTLS,\
$(foreach mode,normal ccache clang-hash,\
$(eval $(call inc_template,$(project),$(mode)))))
inc_mbedtls_hash:
${INC} --project-clone-url ${MBEDTLS} --mode clang-hash
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment