-
-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathMakefile
73 lines (59 loc) · 1.65 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
# A GNU Makefile to run various tasks - compatibility for us old-timers.
# Note: This makefile include remake-style target comments.
# These comments before the targets start with #:
# remake --tasks to shows the targets and the comments
DOCKER ?= docker
DOCKER_COMPOSE ?= docker-compose
DOCKER_COMPOSE_FILE =
GIT2CL ?= admin-tools/git2cl
RM ?= rm
TAG ?= latest
.PHONY: all \
check clean \
dist \
docker-image \
docker-image-quick \
push \
rmChangeLog \
test \
upload
SANDBOX ?=
ifeq ($(OS),Windows_NT)
SANDBOX = t
else
UNAME_S := $(shell uname -s)
ifeq ($(UNAME_S),Darwin)
SANDBOX = t
endif
endif
#: Default target - same as "develop"
all: docker-image
#: Make distirbution: wheels, eggs, tarball
dist:
./admin-tools/make-dist.sh
#: Pull mathics docker image from dockerhub with tag $(TAG). The default tag is "latest".
docker-pull:
$(DOCKER) pull mathicsorg/mathics:$(TAG)
#: Push local docker image to dockerhub with tag $(TAG). The default tag is "latest".
install push upload:
$(DOCKER) push mathicsorg/mathics:$(TAG)
#: Build docker image with cache clearing
docker-image:
$(DOCKER_COMPOSE) $(DOCKER_COMPOSE_FILE) build --no-cache
#: Build docker image without clearing cache
docker-image-quick:
$(DOCKER_COMPOSE) $(DOCKER_COMPOSE_FILE) build
# check: pytest gstest
#: Remove derived files
clean:
rm mathics/*/*.so; \
for dir in mathics/doc ; do \
($(MAKE) -C "$$dir" clean); \
done;
#: Remove ChangeLog
rmChangeLog:
$(RM) ChangeLog || true
#: Create a ChangeLog from git via git log and git2cl
ChangeLog: rmChangeLog
git log --pretty --numstat --summary | $(GIT2CL) >$@
patch ChangeLog < ChangeLog-spell-corrected.diff