Attempted split at multi-repo/arch support, segfaults atm [CI SKIP]

This commit is contained in:
Jef Roosens 2022-02-04 16:04:05 +01:00
parent 3379db017d
commit f7171b822d
Signed by: Jef Roosens
GPG key ID: 955C0660072F691F
7 changed files with 162 additions and 32 deletions

View file

@ -5,7 +5,9 @@ SOURCES != find '$(SRC_DIR)' -iname '*.v'
V_RELEASE := weekly.2022.05
V_PATH ?= v-$(V_RELEASE)/v
V := $(V_PATH) -showcc -gc boehm
ENV := API_KEY=test DOWNLOAD_DIR=data/downloads REPO_DIR=data/repos PKG_DIR=data/pkgs LOG_LEVEL=DEBUG
.PHONY: all
all: vieter
# =====COMPILATION=====
@ -32,19 +34,23 @@ c:
# =====EXECUTION=====
# Run gdb on the debug binary
.PHONY: gdb
gdb: vieter
$(ENV) gdb ./vieter
# Run the server in the default 'data' directory
.PHONY: run
run: vieter
API_KEY=test DOWNLOAD_DIR=data/downloads REPO_DIR=data/repo PKG_DIR=data/pkgs LOG_LEVEL=DEBUG ./vieter
$(ENV) ./vieter
.PHONY: run-prod
run-prod: prod
API_KEY=test DOWNLOAD_DIR=data/downloads REPO_DIR=data/repo PKG_DIR=data/pkgs LOG_LEVEL=DEBUG ./pvieter
$(ENV) ./pvieter
# Same as run, but restart when the source code changes
.PHONY: watch
watch:
API_KEY=test DOWNLOAD_DIR=data/downloads REPO_DIR=data/repo PKG_DIR=data/pkgs LOG_LEVEL=DEBUG $(V) watch run vieter
$(ENV) $(V) watch run vieter
# =====OTHER=====