JSPKGMAN = "yarn" ROOTDIR = $(dir $(CURDIR)) HEAD=$(shell git rev-parse --short HEAD) all: build docker dev: $(JSPKGMAN) run vite dev test: $(JSPKGMAN) run vite check build: rm -rf $(CURDIR)/dist $(JSPKGMAN) run vite build docker: podman build -t docker.io/jmbitci/crypttool . podman build -t docker.io/jmbitci/crypttool:$(HEAD) . podman push docker.io/jmbitci/crypttool podman push docker.io/jmbitci/crypttool:$(HEAD) #TODO get rid of -f and check whether files exist instead clean: rm -f $(CURDIR)/src/lib/crypttool.wasm rm -rf $(CURDIR)/node_modules/* rm -rf $(CURDIR)/dist