Skip to content

Commit 59c7180

Browse files
fix(makefile): use tabs; update typescript/owl
1 parent 07462f0 commit 59c7180

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

{{cookiecutter.project_name}}/Makefile

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -130,15 +130,17 @@ gen-project: $(PYMODEL)
130130

131131
# non-empty arg triggers owl (workaround https://github.com/linkml/linkml/issues/1453)
132132
ifneq ($(strip ${GEN_OWL_ARGS}),)
133-
$(RUN) gen-owl ${GEN_OWL_ARGS} -o ${DEST}/owl/${SCHEMA_NAME}.owl.ttl $(SOURCE_SCHEMA_PATH)
133+
mkdir -p ${DEST}/owl || true
134+
$(RUN) gen-owl ${GEN_OWL_ARGS} $(SOURCE_SCHEMA_PATH) >${DEST}/owl/${SCHEMA_NAME}.owl.ttl
134135
endif
135136
# non-empty arg triggers java
136137
ifneq ($(strip ${GEN_JAVA_ARGS}),)
137-
$(RUN) gen-java ${GEN_JAVA_ARGS} --output-directory ${DEST}/java/ $(SOURCE_SCHEMA_PATH)
138+
$(RUN) gen-java ${GEN_JAVA_ARGS} --output-directory ${DEST}/java/ $(SOURCE_SCHEMA_PATH)
138139
endif
139140
# non-empty arg triggers typescript
140141
ifneq ($(strip ${GEN_TS_ARGS}),)
141-
$(RUN) gen-typescript ${GEN_TS_ARGS} $(SOURCE_SCHEMA_PATH) >${DEST}/typescript/${SCHEMA_NAME}.ts
142+
mkdir -p ${DEST}/typescript || true
143+
$(RUN) gen-typescript ${GEN_TS_ARGS} $(SOURCE_SCHEMA_PATH) >${DEST}/typescript/${SCHEMA_NAME}.ts
142144
endif
143145

144146
test: test-schema test-python test-examples

0 commit comments

Comments
 (0)