summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--Makefile55
1 files changed, 55 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..8ff0588
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,55 @@
+PREFIX?=/usr/local
+_INSTDIR=$(PREFIX)
+BINDIR?=$(_INSTDIR)/bin
+DBDIR?=$(_INSTDIR)/clinte
+
+clinte: src/main.rs src/db.rs src/logging.rs
+	@echo
+	@echo Building clinte. This may take a minute or two.
+	cargo build --release
+	@echo
+	@echo ...Done\!
+
+.PHONY: clean
+clean:
+	@echo
+	@echo Cleaning build cache of artifacts...
+	cargo clean
+	@echo
+	@echo ...Done\!
+
+.PHONY: update
+update:
+	@echo
+	@echo Updating from upstream repository...
+	@echo
+	git pull --rebase
+	@echo
+	@echo ...Done\!
+
+.PHONY: install
+install:
+	@echo
+	@echo Installing clinte...
+	@echo
+	@echo Creating directories...
+	mkdir -p $(BINDIR)
+	mkdir -p $(DBDIR)
+	@echo
+	@echo Copying files...
+	install -m755 target/release/clinte $(BINDIR)
+	touch $(DBDIR)/clinte.db
+	chmod 755 $(DBDIR)/clinte.db
+	@echo
+	@echo ...Done!
+
+.PHONY: uninstall
+uninstall:
+	@echo
+	@echo Uninstalling clinte...
+	@echo
+	@echo Removing files
+	rm -f $(BINDIR)/clinte
+	rm -rf $(DBDIR)
+	@echo
+	@echo ...Done\!
hor hut <hut@lavabit.com> 2010-05-10 14:50:39 +0200 committer hut <hut@lavabit.com> 2010-05-10 21:03:41 +0200 HACKING: update' href='/akspecs/ranger/commit/HACKING?h=v1.4.1&id=3ee05c163e370d28dfabc9c43b0a3b7c0a212443'>3ee05c16 ^
29028631 ^
a2853ab6 ^
f8f6f7f9 ^
f8f6f7f9 ^

29028631 ^

a2853ab6 ^
3ee05c16 ^

f8f6f7f9 ^






29028631 ^
f8f6f7f9 ^









f8f6f7f9 ^






dade4742 ^
fd29d7e6 ^
0df1d653 ^
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95