Add per-client Makefiles for: - r, julia, dart, nim, crystal - clojure, erlang, ocaml, fsharp, d, zig - fortran, cobol, groovy, prolog - scheme, tcl, raku, powershell All follow the 4-mode testing pattern with language-specific build tools and test runners. Also update JavaScript Makefile for async ES module support. Total: 37 language clients with Makefiles
42 lines
1.5 KiB
Makefile
42 lines
1.5 KiB
Makefile
# UN OCaml Client
|
|
|
|
.PHONY: test test-cli test-library test-integration test-functional clean help
|
|
|
|
ROOT_DIR := $(shell cd ../.. && pwd)
|
|
SYNC_DIR := sync
|
|
GREEN := \033[32m
|
|
YELLOW := \033[33m
|
|
NC := \033[0m
|
|
|
|
.DEFAULT_GOAL := help
|
|
|
|
help:
|
|
@echo "UN OCaml Client"
|
|
@echo " make test All 4 test modes"
|
|
|
|
test: test-cli test-library test-integration test-functional
|
|
@echo "$(GREEN)✓ OCaml Client: All 4 test modes complete$(NC)"
|
|
|
|
test-cli:
|
|
@echo ""
|
|
@echo "━━━ CLI MODE ━━━"
|
|
@if [ -f "$(ROOT_DIR)/un.ml" ]; then ocamlopt -c "$(ROOT_DIR)/un.ml" -o /tmp/un.cmx 2>/dev/null && echo " $(GREEN)✓$(NC) Compiles" || echo " $(YELLOW)⊘$(NC) Check syntax"; fi
|
|
@if [ -f "$(SYNC_DIR)/dune-project" ]; then cd $(SYNC_DIR) && dune build 2>/dev/null && echo " $(GREEN)✓$(NC) SDK compiles" || echo " $(YELLOW)⊘$(NC) Run opam install . --deps-only"; fi
|
|
|
|
test-library:
|
|
@echo ""
|
|
@echo "━━━ LIBRARY MODE ━━━"
|
|
@if [ -f "$(SYNC_DIR)/dune-project" ]; then cd $(SYNC_DIR) && dune runtest 2>/dev/null || echo " $(YELLOW)⊘$(NC) Tests incomplete"; fi
|
|
|
|
test-integration:
|
|
@echo ""
|
|
@echo "━━━ INTEGRATION MODE ━━━"
|
|
@if [ -z "$$UNSANDBOX_PUBLIC_KEY" ]; then echo " $(YELLOW)⊘$(NC) No credentials"; else echo " $(YELLOW)⊘$(NC) Not implemented"; fi
|
|
|
|
test-functional:
|
|
@echo ""
|
|
@echo "━━━ FUNCTIONAL MODE ━━━"
|
|
@if [ -z "$$UNSANDBOX_PUBLIC_KEY" ]; then echo " $(YELLOW)⊘$(NC) No credentials"; else echo " $(YELLOW)⊘$(NC) Not implemented"; fi
|
|
|
|
clean:
|
|
@rm -rf $(SYNC_DIR)/_build 2>/dev/null; echo "$(GREEN)✓$(NC) Cleaned"
|