Skip to content

Commit

Permalink
Add a simple Makefile for easily building all languages
Browse files Browse the repository at this point in the history
Signed-off-by: Steffen Vogel <[email protected]>
  • Loading branch information
stv0g committed Jun 21, 2024
1 parent 0669297 commit 54811c7
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
LANGUAGES=python modernpython java javascript cpp

SCHEMA?=CGMES_2.4.15_27JAN2020

ifndef BUILD_IN_DOCKER
CIMGEN=cimgen
else
CIMGEN=docker run --volume "$(shell pwd)/output:/cimgen/output" cimgen
LANGUAGE_DEPS = image
endif

all: $(LANGUAGES)

$(LANGUAGES): $(LANGUAGE_DEPS)
$(CIMGEN) \
--outdir=output/$@/$(SCHEMA) \
--schemadir=cgmes_schema/$(SCHEMA) \
--langdir=$@

image:
docker build -t cimgen -f Dockerfile .

.PHONY: all image python modernpython java javascript

0 comments on commit 54811c7

Please sign in to comment.