forked from agustim/package-serf
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathMakefile
More file actions
24 lines (21 loc) · 743 Bytes
/
Makefile
File metadata and controls
24 lines (21 loc) · 743 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
INSTALLDIR = $(DESTDIR)
ARCH ?= $(shell uname -m|sed 's/i.86/i386/'|sed 's/^arm.*/arm/')
ifeq ($(ARCH),amd64)
ARCH = x86_64
endif
all:
@echo "all"
clean:
@echo "clean"
install:
@echo "Make directory"
mkdir -p $(INSTALLDIR)/opt/serf
mkdir -p $(INSTALLDIR)/etc/init.d/
mkdir -p $(INSTALLDIR)/usr/share/avahi-ps/plugs/
mkdir -p $(INSTALLDIR)/usr/share/avahi-service/files
@echo "Install files"
install -m 0755 init.d/serf $(INSTALLDIR)/etc/init.d/
install -m 0755 bin/$(ARCH)/serf $(INSTALLDIR)/opt/serf/
install -m 0755 usr/share/avahi-ps/plugs/avahi-ps-serf $(INSTALLDIR)/usr/share/avahi-ps/plugs/
install -m 0755 usr/share/avahi-service/files/serf.service $(INSTALLDIR)/usr/share/avahi-service/files/
.PHONY: all clean install