Discord/Mattermost/Slack end-to-end encryption in different variations (Mostly proof of concept, you have been warned)

Makefile 454B

12345678910111213141516171819
  1. IN_DIR = src
  2. OUT_DIR = dist
  3. JS_MIN_OBJS = $(patsubst $(IN_DIR)/%.js, $(OUT_DIR)/%.min.js, $(wildcard $(IN_DIR)/*.js))
  4. all: $(JS_MIN_OBJS) docs
  5. clean:
  6. rm $(OUT_DIR)/*
  7. $(OUT_DIR)/%.min.js: $(IN_DIR)/%.js
  8. java -jar ../closure-compiler-v20190909.jar --js "$<" --language_out ECMASCRIPT_2016 2>/dev/null | tr -d "\n" > "$@"
  9. touch -r "$<" "$@"
  10. docs:
  11. pandoc -s -f markdown -t html5 -o docs/index.html -H ../pandoc.css README.md
  12. .PHONY: all clean docs