8caf0ac3aa
Added framework to generate DOT and png files of character map chart from data folder. Added all figures in the 1-2 chapters. Added font file SimSum for render chart
24 lines
338 B
Makefile
24 lines
338 B
Makefile
# Go parameters
|
|
GOCMD=go
|
|
GOBUILD=$(GOCMD) build
|
|
GOTEST=$(GOCMD) test
|
|
GOCLEAN=$(GOCMD) clean
|
|
|
|
# Binary names
|
|
BINARY_NAME=xyj-figures
|
|
OUTPUT_DIR=output
|
|
|
|
all: build
|
|
|
|
build:
|
|
$(GOBUILD) -o $(OUTPUT_DIR)/$(BINARY_NAME) ./cmd/main.go
|
|
|
|
run: build
|
|
$(OUTPUT_DIR)/$(BINARY_NAME)
|
|
|
|
test:
|
|
$(GOTEST) -v ./...
|
|
|
|
clean:
|
|
$(GOCLEAN)
|
|
rm -rf $(OUTPUT_DIR)
|