crypttool/Makefile

35 lines
693 B
Makefile
Raw Normal View History

JSPKGMAN = "yarn"
ROOTDIR = $(dir $(CURDIR))
HEAD=$(shell git rev-parse --short HEAD)
2023-01-12 17:26:40 +01:00
all: build docker
dev:
$(JSPKGMAN) run vite dev
test:
$(JSPKGMAN) run vite check
2023-01-04 19:29:55 +01:00
build:
rm -rf $(CURDIR)/dist
$(JSPKGMAN) run vite build
2023-01-04 19:29:55 +01:00
docker:
podman build -t docker.io/jmbitci/crypttool .
podman build -t docker.io/jmbitci/crypttool:$(HEAD) .
2023-01-04 19:29:55 +01:00
podman push docker.io/jmbitci/crypttool
podman push docker.io/jmbitci/crypttool:$(HEAD)
2023-01-04 19:29:55 +01:00
2023-01-04 19:29:55 +01:00
#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
2023-03-10 15:40:25 +01:00
rm -rf $(CURDIR)/.yarn
rm -rf $(CURDIR)/package-lock.json
rm -rf $(CURDIR)/yarn.lock