-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathMakefile
46 lines (36 loc) · 1.42 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
METADATA_EXTRACTOR_URL=https://github.com/agiledigital/mule-metadata-extractor/releases/download/v1.0.14/mule-metadata-extractor-1.0.14-standalone.jar
METADATA_EXTRACTOR_JAR=mule-metadata-extractor-1.0.14-standalone.jar
CLIENT_FILES := $(shell find src -type f -iname '*.cljs')
CLIENT_PUBLIC_FILES := $(shell find public -type f ! -path "public/img/icons/*")
all: dist/.timestamp
.PHONY: all
dist/.timestamp: node_modules/.installed libs/reagent/target/reagent-0.8.1-BINDFIX.jar $(CLIENT_FILES)
@echo ">>> Building Client Module (Release)"
npm run build
touch $@
node_modules/.installed: package.json libs/reagent/target/reagent-0.8.1-BINDFIX.jar
@echo ">>> Installing dependencies for Client Module"
npm install && touch node_modules/.installed
libs/reagent/target/reagent-0.8.1-BINDFIX.jar: libs/reagent/project.clj
@echo ">>> Installing forked version of Reagent into local repo"
cd libs/reagent && lein install
libs/reagent/.timestamp: .gitmodules
@echo ">>> Updating submodule"
git submodule update --init --recursive --remote
touch $@
dependencies/$(METADATA_EXTRACTOR_JAR):
@echo ">>> Downloading mule-metadata-extractor binary"
mkdir -p dependencies
curl -L --show-error --fail -o dependencies/$(METADATA_EXTRACTOR_JAR) $(METADATA_EXTRACTOR_URL)
clean:
rm -rf \
public/js \
dist \
build \
.shadow-cljs \
node_modules \
public/mappings.json \
public/img/icons \
libs/reagent/target \
dependencies
.PHONY: clean