forked from Turanic/usbwall
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathMakefile
More file actions
30 lines (22 loc) · 659 Bytes
/
Copy pathMakefile
File metadata and controls
30 lines (22 loc) · 659 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
BUILD_DIR = _build
BIN_DIR = out
PROJECT = usbwall
VERSION != git tag | tail -n 1 | cut -d'v' -f2-
FORMAT = tar.gz
all:
+$(MAKE) -C $(BUILD_DIR)
distclean:
rm -rf $(BUILD_DIR) $(BIN_DIR)
rm -f $(PROJECT).$(FORMAT)
rm -f $(PROJECT)-$(VERSION).$(FORMAT)
dist: distclean
git archive --format $(FORMAT) -o $(PROJECT).$(FORMAT) --prefix $(PROJECT)/ HEAD
dist-stable: distclean
git archive --format $(FORMAT) -o $(PROJECT)-$(VERSION).$(FORMAT) --prefix $(PROJECT)-$(VERSION)/ v$(VERSION)
test:
+$(MAKE) -C $(BUILD_DIR) usbwall_test
doc:
+$(MAKE) -C $(BUILD_DIR) $@
%:
+$(MAKE) -C $(BUILD_DIR) $@
.PHONY: doc distclean dist dist-stable test