launch app-% target when APP

This commit is contained in:
2025-12-18 00:47:53 +01:00
parent 4cd1aae963
commit 9f80ab9220
11 changed files with 8 additions and 13 deletions
+3 -5
View File
@@ -1,7 +1,5 @@
# myos - Make Your Own Stack
Docker paas based on docker compose and make files.
Make Your Own Stack provides common make targets to build and run docker projects.
## Disclaimer
@@ -18,9 +16,9 @@ You need `docker`, `git` and `make`.
```
MYOS ?= ../myos
MYOS_REPOSITORY ?= $(patsubst %/$(APP),%/myos,$(APP_REPOSITORY))
APP ?= $(lastword $(subst /, ,$(APP_REPOSITORY)))
APP_REPOSITORY ?= $(shell git config --get remote.origin.url 2>/dev/null)
MYOS_REPOSITORY ?= $(patsubst %/$(THIS),%/myos,$(THIS_REPOSITORY))
THIS ?= $(lastword $(subst /, ,$(THIS_REPOSITORY)))
THIS_REPOSITORY ?= $(shell git config --get remote.origin.url 2>/dev/null)
$(MYOS):
-@git clone $(MYOS_REPOSITORY) $(MYOS)
-include $(MYOS)/make/include.mk