File: Makefile

package info (click to toggle)
ekeyd 1.1.5-8
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 812 kB
  • sloc: ansic: 5,259; sh: 333; makefile: 203; perl: 150; xml: 17
file content (43 lines) | stat: -rw-r--r-- 1,275 bytes parent folder | download | duplicates (3)
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
#!/bin/make
#
# Entropy key daemon package
#
# Copyright 2011 Simtec Electronics
#
# For licence terms refer to the COPYING file.

# Override any of these on the cmdline to set options. 
# Ensure they are overridden during both build and install.
DESTDIR ?=
PREFIX ?= /usr
DOCPREFIX=${PREFIX}/share/doc/ekeyd
MUNINPLUGINS=${PREFIX}/share/munin/plugins
MUNINPLUGINSCONF=/etc/munin/plugin-conf.d

#optional daemons
BUILD_ULUSBD ?= no
BUILD_EGDLINUX ?= no

# extra install docs
DOCFILES := README.FreeBSD README README.protocol README.Centos5 README.security
ifneq ($(BUILD_EGDLINUX),no)
DOCFILES += README.egd-protocol README.egd-linux
endif

.PHONY: all host install clean

all: host

host:
	${MAKE} -C host BUILD_ULUSB=${BUILD_ULUSBD} BUILD_EGDLINUX=${BUILD_EGDLINUX} DESTDIR=${DESTDIR} 

clean:
	${MAKE} -C host BUILD_ULUSB=${BUILD_ULUSBD} BUILD_EGDLINUX=${BUILD_EGDLINUX} DESTDIR=${DESTDIR}  clean

install:
	${MAKE} -C host BUILD_ULUSB=$(BUILD_ULUSBD) BUILD_EGDLINUX=$(BUILD_EGDLINUX) DESTDIR=$(DESTDIR) install
	for DOC in $(DOCFILES) ; do \
	  install -D -m 644 doc/$$DOC $(DESTDIR)/$(DOCPREFIX)/$$DOC ; \
	done
	install -D -m 755 munin/ekeyd_stat_ $(DESTDIR)/$(MUNINPLUGINS)/ekeyd_stat_
	install -D -m 644 munin/plugin-conf.d_ekeyd $(DESTDIR)/${MUNINPLUGINSCONF}/ekeyd