forked from mikael-lovqvist/fa2json
Add test harness: setup lib, dev mode, automated test runner
This commit is contained in:
21
Makefile
Normal file
21
Makefile
Normal file
@@ -0,0 +1,21 @@
|
||||
SHELL := /bin/bash
|
||||
CC := cc
|
||||
CFLAGS := -Wall -O2
|
||||
TARGET := fa2json
|
||||
SRCS := fs-watcher.c json-writer.c
|
||||
|
||||
.PHONY: all test dev clean
|
||||
|
||||
all: $(TARGET)
|
||||
|
||||
$(TARGET): $(SRCS)
|
||||
$(CC) $(CFLAGS) -o $@ $^
|
||||
|
||||
test: $(TARGET)
|
||||
node test/test.mjs
|
||||
|
||||
dev: $(TARGET)
|
||||
node test/dev.mjs $(ARGS)
|
||||
|
||||
clean:
|
||||
rm -f $(TARGET)
|
||||
Reference in New Issue
Block a user