forked from jjneely/buckytools
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
30 lines (23 loc) · 713 Bytes
/
Copy pathMakefile
File metadata and controls
30 lines (23 loc) · 713 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
# Buckytools Makefile
#
# This Makefile is mostly for Debian packaging purposes, however
# it does build all the tools and the Bucky client/server. We
# package built binaries here as a recent Go compiler is not
# packages/available for Precise.
#
# Nothing done here, we don't compile in the DSC build process
commands = bucky buckyd bucky-fill bucky-isempty bucky-pickle-relay \
bucky-sparsify
all: build
build: *.go $(commands)
.PHONY: $(commands)
$(commands):
cd $@; go build
install:
$(foreach c,$(commands), install -D -m 0755 $(c)/$(c) $(DESTDIR)/usr/bin/$(c);)
dsc:
dpkg-source -b .
clean:
$(foreach c,$(commands), rm -f $(c)/$(c);)
find . -name \*~ -delete
find . -name \*.wsp -delete