-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
45 lines (37 loc) · 1.19 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
#
# Makefile
# =============================================================================
# Urban bus routing microservice prototype (Clojure port). Version 0.20.3
# =============================================================================
# A daemon written in Clojure, designed and intended to be run
# as a microservice, implementing a simple urban bus routing prototype.
# =============================================================================
# Copyright (C) 2021-2025 Radislav (Radicchio) Golubtsov
#
# (See the LICENSE file at the top of the source tree.)
#
SERV = target
JAR = jar
UBERJAR = uberjar
VERSION = 0.20.3
# Specify flags and other vars here.
LEIN = lein
MV = mv
MVFLAGS = -v
ECHO = @echo
# Making the first target (JVM classes).
$(SERV):
$(LEIN) compile :all
# Making the second target (runnable JAR file).
$(JAR):
$(LEIN) $(UBERJAR)
$(MV) $(MVFLAGS) $(SERV)/$(UBERJAR)/bus-$(VERSION).$(JAR) \
$(SERV)/$(UBERJAR)/bus-$(VERSION).$(JAR).original
$(MV) $(MVFLAGS) $(SERV)/$(UBERJAR)/bus-$(VERSION)-standalone.$(JAR) \
$(SERV)/$(UBERJAR)/bus-$(VERSION).$(JAR)
$(ECHO)
.PHONY: all clean
all: $(JAR)
clean:
$(LEIN) clean
# vim:set nu ts=4 sw=4: