build(Makefile): remove deprecated serve targets

This commit is contained in:
Sarah Vaupel 2024-10-19 23:41:22 +02:00
parent 1d1c31f7a9
commit 1321e8a308

View File

@ -49,7 +49,7 @@ help:
@if [ -z "$$(which perl 2>/dev/null)" ] ; then \
$(CONTAINER_FGRUN) .:/mnt 'debian:12.5' '/mnt/utils/makehelp.pl' '/mnt/Makefile' ; \
else \
utils/makehelp.pl Makefile ; \
utils/makehelp.pl Makefile ; \
fi
.PHONY: clean
@ -126,14 +126,6 @@ test: test-frontend test-backend i18n-check;
# HELP(compile-frontend): compile frontend
--compile-frontend: static well-known;
.PHONY: serve-frontend
# HELP: serve frontend (watch file changes)
serve-frontend:
$(MAKE) -- --containerized---compile-frontend WATCH=--watch
# --serve-frontend: WATCH=--watch
# --serve-frontend: --compile-frontend;
# HELP(lint-frontend): lint frontend
--lint-frontend: eslint.config.js
npx -- eslint frontend/src $(FIX)
@ -172,22 +164,6 @@ well-known: static;
%-backend: FRADRIVE_SERVICE=backend
%-backend: --image-build --containerized---%-backend;
# TODO: to be deprecated by start-%
.PHONY: serve-backend
# HELP: serve backend
serve-backend:
DEV_PORT_HTTP=`utils/next_free_port.pl 3000 | tee .dev-port-http`; \
DEV_PORT_HTTPS=`utils/next_free_port.pl 3443 | tee .dev-port-https`; \
$(MAKE) -- --containerized---serve-dev-backend DEV_PORT_HTTP=$${DEV_PORT_HTTP} DEV_PORT_HTTPS=$${DEV_PORT_HTTPS}
# DEV_PORT_HTTP=`grep 'https:' develop/$(DATE)/backend/$(CONTAINER_ID) | sed 's/.*://'`; \
# DEV_PORT_HTTPS=`grep 'https:' develop/$(DATE)/backend/$(CONTAINER_ID) | sed 's/.*://'`; \
# DEVELOP=$(MAKE) develop/
--serve-dev-backend: start.sh
DEV_PORT_HTTP=`cat .dev-port-http`; \
DEV_PORT_HTTPS=`cat .dev-port-https`; \
./start.sh
# ./utils/watchrun.sh develop/ ./start.sh
# HELP(compile-backend): compile backend
--compile-backend:
stack build --fast --work-dir .stack-work-build --profile --library-profiling --executable-profiling --flag uniworx:-library-only --local-bin-path $$(pwd)/bin $(stackopts)
@ -307,33 +283,7 @@ image-rebuild-%:
fi \
fi
# .PHONY: new-backend
# new-backend:
# LAST_DATE=`ls -1 develop | tail -n1`
# if [[ -z "$${LAST_DATE}" || -e `ls develop/$${LAST_DATE}/database` ]]; then \
# mkdir -p develop/$$(date +'%Y-%m-%dT%H-%M-%S') \
# fi
# serve-backend
#new-database:
# mkdir -p develop/$$(date +'%Y-%m-%dT%H-%M-%S')
# $(MAKE) serve-database
# TODO: work in progress
# - compute used ports and provide as env vars
# - start container in detached mode
# - save container id with ports as content as file
# .PHONY: serve-%
# serve-backend:
# DEV_PORT_HTTP=`docker/backend/dev_port.pl 3000 | tee develop/$${DATE}/fradrive.backend.$${DATE}`; \
# DEV_PORT_HTTPS=`docker/backend/dev_port.pl 3443 | tee .dev-port-https`; \
# $(MAKE) -- --containerized---start-dev-backend DEV_PORT_HTTP=$${DEV_PORT_HTTP} DEV_PORT_HTTPS=$${DEV_PORT_HTTPS}
#--serve-dev-backend: start.sh
# DEV_PORT_HTTP=`grep 'https:' develop/$(DATE)/backend/$(CONTAINER_ID) | sed 's/.*://'`; \
# DEV_PORT_HTTPS=`grep 'https:' develop/$(DATE)/backend/$(CONTAINER_ID) | sed 's/.*://'`; \
# ./utils/watchrun.sh develop/ ./start.sh
DATE := $(shell date +'%Y-%m-%dT%H-%M-%S')
DATE := $(shell date +'%Y-%m-%dT%H-%M-%S')
SET_DEVELOP = $(eval DEVELOP=develop/`ls -1 develop | tail -n1`)
NEW_DEVELOP = $(eval DEVELOP=develop/$$(DATE))