From 0ebdbbb4da071d33a47e99c4273fd995ee41b565 Mon Sep 17 00:00:00 2001 From: Jan Dittberner Date: Wed, 17 Aug 2022 18:47:26 +0200 Subject: [PATCH] Add Makefile --- Makefile | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 Makefile diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..9745fa1 --- /dev/null +++ b/Makefile @@ -0,0 +1,17 @@ +RESULT = static/css/cacert.bundle.css static/js/cacert.bundle.js +SOURCES = $(shell find frontend_src -type f) webpack.config.js package.json +YARN = /usr/bin/yarnpkg + +all: $(RESULT) + +$(RESULT): $(SOURCES) + $(YARN) + $(YARN) run build + +clean: + rm -rf static + +distclean: clean + rm -rf node_modules + +.PHONY: all clean distclean