Skip to content

Commit

Permalink
create and clean up dirs during build
Browse files Browse the repository at this point in the history
  • Loading branch information
reinhrst committed Dec 2, 2023
1 parent faa29b9 commit d289453
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,15 @@ public/app/bundled/libavjs-$(LIBAVJS_COMMIT)/version.txt: $(LIBAVJS_TARGET_FILES
@echo $(LIBAVJS_COMMIT) > $@

$(LIBAVJS_TARGET_FILES): libav.js/Dockerfile libav.js/commit.txt
@mkdir -p "$(DOCKER_TMPDIR)"
$(eval OUTDIR := $(shell mktemp -d --tmpdir=$(DOCKER_TMPDIR)))
@$(DOCKER) build libav.js \
--build-arg="LIBAVJS_COMMIT=$(LIBAVJS_COMMIT)" \
--build-arg="FILES_TO_BUILD=$(LIBAVJS_MAKE_FILES)" \
--target=artifact --output type=local,dest=$(OUTDIR)
@mkdir -p public/app/bundled/libavjs
@cp -R $(OUTDIR)/dist public/app/bundled/libavjs-$(LIBAVJS_COMMIT)
@rm -r "$(OUTDIR)"

public/app/tsc: tsconfig.json $(shell find src) public/app/bundled/libavjs-$(LIBAVJS_COMMIT)/version.txt
@tsc --noEmit
Expand Down

0 comments on commit d289453

Please sign in to comment.