mirror of
https://github.com/Warky-Devs/go-mdtopdf-helper.git
synced 2026-11-25 13:48:47 +00:00
- go-mdtopdf-helper: -format pdf,html,docx; new internal/document writers (standalone HTML, pure Go DOCX) - new go-tomd command converting PDF/HTML/DOCX back to Markdown, skipping existing .md files unless -force - -input/-output on both commands (single file with chosen name, or output directory mirroring the scan layout) - restructure README and build config (Makefile, goreleaser) for both binaries
32 lines
480 B
Makefile
32 lines
480 B
Makefile
BINARY := go-mdtopdf-helper
|
|
TOMD_BINARY := go-tomd
|
|
BIN_DIR := bin
|
|
CMD := ./cmd/go-mdtopdf-helper
|
|
TOMD_CMD := ./cmd/go-tomd
|
|
|
|
.PHONY: all build run run-tomd test lint format clean
|
|
|
|
all: format lint test build
|
|
|
|
build:
|
|
go build -o $(BIN_DIR)/$(BINARY) $(CMD)
|
|
go build -o $(BIN_DIR)/$(TOMD_BINARY) $(TOMD_CMD)
|
|
|
|
run:
|
|
go run $(CMD) $(ARGS)
|
|
|
|
run-tomd:
|
|
go run $(TOMD_CMD) $(ARGS)
|
|
|
|
test:
|
|
go test ./...
|
|
|
|
lint:
|
|
golangci-lint run ./...
|
|
|
|
format:
|
|
gofmt -s -w .
|
|
|
|
clean:
|
|
rm -rf $(BIN_DIR)
|