Files
go-mdtopdf-helper/Makefile
T
Hein 5bf9c3673d feat: add DOCX/HTML output, go-tomd reverse converter, and input/output flags
- 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
2026-10-08 17:05:01 +02:00

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)