forked from katjabercic/Lean-HoG
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
37 lines (25 loc) · 808 Bytes
/
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
### Configuration
# Folder with original HoG data file (if you do not have it, comment this out)
SRCDIR=input-data/raw-hog
# Use this instead if you don't have the real HoG data
# SRCDIR=sample-data
# Folder where generated JSON files are placed
DESTDIR=pigpen
# The script that converts HoG data files to Lean files
CONVERT=convert/convert.py
# We compile everything using lake - the lean build system
LAKE=lake
LOGLEVEL=30
LIMIT=100
SKIP=0
.PHONY: build-lean build-graphs clean-data clean-lean
all: build-graphs build-lean
clean: clean-graphs clean-lean
clean-lean:
$(LAKE) clean
build-lean:
$(LAKE) build
build-graphs: clean-graphs
python3 $(CONVERT) --loglevel $(LOGLEVEL) --srcdir $(SRCDIR) --destdir $(DESTDIR) --limit $(LIMIT) --skip $(SKIP)
clean-graphs:
/bin/rm -f $(DESTDIR)/*.json