-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
26 lines (23 loc) · 746 Bytes
/
Makefile
File metadata and controls
26 lines (23 loc) · 746 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
INSTALLDIR = $(DESTDIR)
ARCH ?= $(shell uname -m|sed 's/i.86/i386/'|sed 's/^arm.*/arm/')
INSTALLPATH = '/usr/local/bin'
BINNAME = 'ipfs'
BZIP2NAME = 'ipfs.bz2'
ifeq ($(ARCH),x86_64)
ARCH = amd64
endif
all:
@echo "all"
clean:
@echo "clean"
install:
@echo "Make required directories"
mkdir -p $(INSTALLDIR)/$(INSTALLPATH)
mkdir -p $(INSTALLDIR)/etc/init.d/
mkdir -p $(INSTALLDIR)/usr/share/avahi-ps/plugs/
@echo "Install files"
install -m 0755 bin/$(ARCH)/$(BZIP2NAME) $(INSTALLDIR)/$(INSTALLPATH)
install -m 0755 init.d/cloudy-ipfs $(INSTALLDIR)/etc/init.d/
bunzip2 -f $(INSTALLDIR)/$(INSTALLPATH)/$(BZIP2NAME)
install -m 0755 usr/share/avahi-ps/plugs/avahi-ps-ipfs $(INSTALLDIR)/usr/share/avahi-ps/plugs/
.PHONY: all clean install