add make ps_bridge subcommand

This commit is contained in:
fanghr 2022-05-13 20:13:18 +08:00
parent b04817b867
commit b363b326f3
No known key found for this signature in database
GPG key ID: 35CD9A71CD5D5870
4 changed files with 12 additions and 5 deletions

View file

@ -1,7 +1,7 @@
# This really ought to be `/usr/bin/env bash`, but nix flakes don't like that.
SHELL := /bin/sh
.PHONY: hoogle format haddock usage tag lint
.PHONY: hoogle format haddock usage tag lint ps_bridge
usage:
@echo "usage: make <command> [OPTIONS]"
@ -12,6 +12,7 @@ usage:
@echo " haddock -- Generate Haddock docs for project"
@echo " tag -- Generate CTAGS and ETAGS files for project"
@echo " lint -- Get hlint suggestions for project"
@echo " ps_bridge -- Generate purescript bridge files"
hoogle:
pkill hoogle || true
@ -43,3 +44,7 @@ tag:
lint:
hlint agora agora-bench agora-test
PS_BRIDGE_OUTPUT_DIR := agora-purescript-bridge/
ps_bridge:
cabal run exe:agora-purescript-bridge -- -o $(PS_BRIDGE_OUTPUT_DIR)