forked from google/MOE-py
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
41 lines (27 loc) · 685 Bytes
/
Makefile
File metadata and controls
41 lines (27 loc) · 685 Bytes
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
# Edit these to your needs.
PREFIX=/usr/local
UTFPREFIX=/usr/local
CC=gcc
CFLAGS=-I$(UTFPREFIX)/include
LEX=flex
LEXFLAGS=
PYTHON=python
PYBUILDFLAGS=
PYTESTFLAGS=
PYINSTALLFLAGS=
# End configuration options.
COMMENT=moe/scrubber/comment
all: comment py
install: comment
$(PYTHON) setup.py install $(PYINSTALLFLAGS)
check: comment
$(PYTHON) setup.py google_test $(PYTESTFLAGS)
py: comment
$(PYTHON) setup.py build $(PYBUILDFLAGS)
comment: $(COMMENT)
$(COMMENT): $(COMMENT).yy.c $(UTFPREFIX)/lib/libutf.a
$(CC) $(CFLAGS) $(LDFLAGS) -o $@ $^
$(COMMENT).yy.c: $(COMMENT).l
$(LEX) $(LEXFLAGS) -o $@ $<
clean:
rm -f $(COMMENT) $(COMMENT).yy* && $(PYTHON) setup.py clean