Project

General

Profile

Statistics
| Branch: | Tag: | Revision:

gdp / adm / Makefile @ master

History | View | Annotate | Download (2.05 KB)

1
#
2
#  ----- BEGIN LICENSE BLOCK -----
3
#	GDP: Global Data Plane administrative files
4
#	From the Ubiquitous Swarm Lab, 490 Cory Hall, U.C. Berkeley.
5
#
6
#	Copyright (c) 2015-2017, Regents of the University of California.
7
#	All rights reserved.
8
#
9
#	Permission is hereby granted, without written agreement and without
10
#	license or royalty fees, to use, copy, modify, and distribute this
11
#	software and its documentation for any purpose, provided that the above
12
#	copyright notice and the following two paragraphs appear in all copies
13
#	of this software.
14
#
15
#	IN NO EVENT SHALL REGENTS BE LIABLE TO ANY PARTY FOR DIRECT, INDIRECT,
16
#	SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES, INCLUDING LOST
17
#	PROFITS, ARISING OUT OF THE USE OF THIS SOFTWARE AND ITS DOCUMENTATION,
18
#	EVEN IF REGENTS HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
19
#
20
#	REGENTS SPECIFICALLY DISCLAIMS ANY WARRANTIES, INCLUDING, BUT NOT
21
#	LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
22
#	FOR A PARTICULAR PURPOSE. THE SOFTWARE AND ACCOMPANYING DOCUMENTATION,
23
#	IF ANY, PROVIDED HEREUNDER IS PROVIDED "AS IS". REGENTS HAS NO
24
#	OBLIGATION TO PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS,
25
#	OR MODIFICATIONS.
26
#  ----- END LICENSE BLOCK -----
27
#
28

    
29
# DESTDIR is just for staging.  LOCALROOT should be /usr or /usr/local.
30
DESTDIR=
31
LOCALROOT=	/usr
32
INSTALLROOT=	${DESTDIR}${LOCALROOT}
33
DOCDIR=		${INSTALLROOT}/share/doc/gdp
34
# /usr/libexec on BSD and Mac, /usr/sbin on most Linux
35
LIBEXECDIR=	${INSTALLROOT}/sbin
36
VER=		2
37
INSTALLFLAGS=
38
INSTALL=	install ${INSTALLFLAGS}
39

    
40
# install gdplogd support files (called from gdplogd/Makefile)
41
install-gdplogd-wrapper: gdplogd-wrapper.sh
42
	${INSTALL} gdplogd-wrapper.sh ${LIBEXECDIR}/gdplogd${VER}-wrapper.sh
43

    
44
ADM=		../adm
45
UPDATE_LICENSE=	${ADM}/update-license.sh
46

    
47
update-license:
48
	${UPDATE_LICENSE} Makefile
49
	(cd ep;		 ${MAKE} update-license)
50
	(cd gdp;	 ${MAKE} update-license)
51
	(cd gdplogd;	 ${MAKE} update-license)
52
	(cd apps;	 ${MAKE} update-license)
53

    
54
DOC=		../doc
55
PANDOC=		pandoc
56
PANFLAGS=	-s -c ${DOC}/gdpdoc.css
57

    
58
.SUFFIXES: .md .html
59

    
60
.md.html:
61
	${PANDOC} ${PANFLAGS} -o $@ $<