miller/Makefile

41 lines
1 KiB
Makefile

build:
make -C go build
@echo "Miller executable is: ./mlr, or go\mlr.exe on Windows"
check:
make -C go check
install:
make -C go install
make -C man install
# For developers before pushing to GitHub.
#
# These steps are done in a particular order:
# go:
# * builds the mlr executable
# man:
# * creates manpage mlr.1 and manpage.txt using mlr from the $PATH
# * copies the latter to docs/src
# docs:
# * turns *.md.in into *.md (live code samples), using mlr from the $PATH
# * note the man/manpage.txt becomes some of the HTML content
# * turns *.md into docs/site HTML and CSS files
precommit:
make -C go fmt
make -C go build
make -C go check
make -C man build
make -C docs
@echo DONE
# Keystroke-saver
itso: build check install
# Please see comments in ./create-release-tarball as well as
# https://miller.readthedocs.io/en/latest/build/#creating-a-new-release-for-developers
release_tarball: build check
./create-release-tarball
# Go does its own dependency management, outside of make.
.PHONY: build check install precommit