forked from tnustrings/ct
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmakefile
More file actions
33 lines (26 loc) · 1.06 KB
/
makefile
File metadata and controls
33 lines (26 loc) · 1.06 KB
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
# name
name = "ct"
# get the version from github tag
# sort by version; get the last line; delete the v from the version tag cause python build seems to strip it as well
version = $(shell git tag | sort -V | tail -1 | tr -d v)
all: bin/ct
bin/ct: bin/ctmini cmd/ct/main.ct ct.go org.ct tex.ct conf/*
# make a mini-ct that doesn't depend on ct code itsself, use it to build the ct code for the main program
./bin/ctmini cmd/ct/main.ct; mv main.go cmd/ct # ctmini doesn't move outputfiles into their corresponding directories
./bin/ctmini org.ct
./bin/ctmini tex.ct
./bin/ctmini ct_test.ct
go build -o bin/ct cmd/ct/main.go
bin/ctmini: # build ctmini
go build -o bin/ctmini cmd/ctmini/main.go
.PHONY deb:
cd deb; make
publish-update: # if an asset was already uploaded, delete it before uploading again
make
# does the tag updating also update the source code at the resource?
# move the version tag to the most recent commit
git tag -f "v${version}"
# delete tag on remote
git push origin ":refs/tags/v${version}"
# re-push the tag to the remote
git push --tags