Skip to content

Commit 89e046c

Browse files
author
Robert Sachunsky
committed
add 'build' and 'help' targets
1 parent 6ee1592 commit 89e046c

File tree

1 file changed

+22
-2
lines changed

1 file changed

+22
-2
lines changed

Makefile

Lines changed: 22 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,16 +6,36 @@ DOCKER_TAG = ocrd/cis
66
DOCKER_BASE_IMAGE = docker.io/ocrd/core:v3.1.0
77
SHELL = bash
88

9+
help:
10+
@echo ""
11+
@echo " Targets"
12+
@echo ""
13+
@echo " install Install ocrd_cis"
14+
@echo " install-dev Install in editable mode"
15+
@echo " build Build source and binary distribution"
16+
@echo " docker Build Docker image"
17+
@echo " test Run unit tests"
18+
@echo ""
19+
@echo " Variables"
20+
@echo ""
21+
@echo " DOCKER_TAG '$(DOCKER_TAG)'"
22+
@echo " PY '$(PY)'"
23+
@echo " PIP '$(PIP)'"
24+
925
install:
1026
${PIP} install .
1127

1228
install-devel install-dev:
1329
${PIP} install -e .
1430

31+
build:
32+
${PIP} install build
33+
${PY} -m build .
34+
1535
uninstall:
1636
${PIP} uninstall ${PKG}
1737

18-
docker-build: Dockerfile
38+
docker-build docker: Dockerfile
1939
docker build \
2040
--build-arg DOCKER_BASE_IMAGE=$(DOCKER_BASE_IMAGE) \
2141
--build-arg VCS_REF=$$(git rev-parse --short HEAD) \
@@ -48,4 +68,4 @@ test: $(TEST_SCRIPTS)
4868
@cat test_parallel.log
4969
@$(RM) test_serially.log test_parallel.log
5070

51-
.PHONY: install install-dev install-devel uninstall test docker-build docker-push
71+
.PHONY: install install-dev install-devel build uninstall test docker docker-build docker-push

0 commit comments

Comments
 (0)