-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
42 lines (32 loc) · 987 Bytes
/
Makefile
File metadata and controls
42 lines (32 loc) · 987 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
########################################################################
# Setup
########################################################################
#
# Yes, the pebble tool is fantastic, but I like to automate things.
# This lets me run `make` to run the app on my wrist and watch the
# logs directly from the device. Nifty. YMMV.
#
ifndef PEBBLE_EMULATOR
PEBBLE_EMULATOR := basalt
endif
ifndef PEBBLE_PHONE
ifndef PEBBLE_CLOUDPEBBLE
PEBBLE_FLAGS := --logs --emulator $(PEBBLE_EMULATOR)
endif
endif
########################################################################
# Tasks
########################################################################
# Declare tasks that don't result in something that make can check for
# freshness.
.PHONY: all build clean install logs
# A default list of things to do when no arguments are given.
all: clean logs
clean:
pebble $@
build:
pebble $@
install: build
pebble $@ $(PEBBLE_FLAGS)
logs: install
pebble $@ $(PEBBLE_FLAGS)