Skip to content

Commit

Permalink
Change config to be make & just compatible
Browse files Browse the repository at this point in the history
  • Loading branch information
dalito committed Jan 5, 2025
1 parent f63cab0 commit 51da16a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
3 changes: 2 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ SHEET_MODULE_PATH = $(SOURCE_SCHEMA_DIR)/$(SHEET_MODULE).yaml
# Use += to append variables from the variables file
CONFIG_YAML =
ifdef LINKML_GENERATORS_CONFIG_YAML
CONFIG_YAML += "--config-file"
CONFIG_YAML += ${LINKML_GENERATORS_CONFIG_YAML}
endif

Expand Down Expand Up @@ -222,7 +223,7 @@ git-status:
clean:
rm -rf $(DEST)
rm -rf tmp
rm -fr docs/*
rm -fr $(docdir)/*
rm -fr $(PYMODEL)/*

include project.Makefile
8 changes: 4 additions & 4 deletions config.public.mk
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,16 @@

# Note: makefile variables should not be quoted, as makefile handles quoting differently than bash
LINKML_SCHEMA_NAME=pid4cat_model
LINKML_SCHEMA_AUTHOR=David Linke <[email protected]>
LINKML_SCHEMA_DESCRIPTION=LinkML model for handle-based PIDs for resources in catalysis (PID4Cat)
LINKML_SCHEMA_AUTHOR="David Linke <[email protected]>"
LINKML_SCHEMA_DESCRIPTION="LinkML model for handle-based PIDs for resources in catalysis (PID4Cat)"
LINKML_SCHEMA_SOURCE_PATH=src/pid4cat_model/schema/pid4cat_model.yaml
LINKML_SCHEMA_GOOGLE_SHEET_ID=1wVoaiFg47aT9YWNeRfTZ8tYHN8s8PAuDx5i2HUcDpvQ
LINKML_SCHEMA_GOOGLE_SHEET_TABS=personinfo enums
LINKML_SCHEMA_GOOGLE_SHEET_TABS="personinfo enums"

###### linkml generator variables, used by makefile

## gen-project configuration file
LINKML_GENERATORS_CONFIG_YAML= --config-file config.yaml
LINKML_GENERATORS_CONFIG_YAML=config.yaml

## pass args if gendoc ignores config.yaml (i.e. --no-mergeimports)
LINKML_GENERATORS_DOC_ARGS=
Expand Down

0 comments on commit 51da16a

Please sign in to comment.