-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
45 lines (40 loc) · 1.3 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
# bootstrap makefile for building impulse
all: copy_srcs
python3 -m impulse.impulse build //impulse:impulse --fakeroot $(shell pwd) --debug
@./GENERATED/BINARIES/impulse/impulse build //impulse:impulse --fakeroot $(shell pwd) --force --debug
@./GENERATED/BINARIES/impulse/impulse build //impulse:impulse --fakeroot $(shell pwd) --force
@rm -r impulse/
typecheck: copy_srcs
@find impulse/ | grep .*[a-z]\.py | xargs mypy
@rm -r impulse/
copy_srcs:
@rm -rf impulse/
@mkdir impulse
@touch impulse/__init__.py
@cp *.py impulse/
@cp BUILD impulse/
@cp -r rules impulse/rules
@cp -r args impulse/args
@touch impulse/args/__init__.py
@cp -r core impulse/core
@touch impulse/core/__init__.py
@cp -r format impulse/format
@touch impulse/format/__init__.py
@cp -r pkg impulse/pkg
@touch impulse/pkg/__init__.py
@cp -r fuse impulse/fuse
@touch impulse/fuse/__init__.py
@cp -r util impulse/util
@touch impulse/util/__init__.py
@cp -r testing impulse/testing
@touch impulse/testing/__init__.py
@cp -r lib impulse/lib
@touch impulse/lib/__init__.py
@cp -r types impulse/types
@touch impulse/types/__init__.py
install: GENERATED/BINARIES/impulse/impulse
@echo 'installing to /usr/local/bin/impulse'
@cp GENERATED/BINARIES/impulse/impulse /usr/local/bin/impulse
clean:
@rm -rf impulse/
@rm -rf GENERATED/