1*3b6c3722Schristos# Makefile: tests unbound python module (please edit SCRIPT variable) 2*3b6c3722Schristos# 3*3b6c3722Schristos# Copyright (c) 2009, Zdenek Vasicek (vasicek AT fit.vutbr.cz) 4*3b6c3722Schristos# Marek Vavrusa (xvavru00 AT stud.fit.vutbr.cz) 5*3b6c3722Schristos# 6*3b6c3722Schristos# This software is open source. 7*3b6c3722Schristos# 8*3b6c3722Schristos# Redistribution and use in source and binary forms, with or without 9*3b6c3722Schristos# modification, are permitted provided that the following conditions 10*3b6c3722Schristos# are met: 11*3b6c3722Schristos# 12*3b6c3722Schristos# * Redistributions of source code must retain the above copyright notice, 13*3b6c3722Schristos# this list of conditions and the following disclaimer. 14*3b6c3722Schristos# 15*3b6c3722Schristos# * Redistributions in binary form must reproduce the above copyright notice, 16*3b6c3722Schristos# this list of conditions and the following disclaimer in the documentation 17*3b6c3722Schristos# and/or other materials provided with the distribution. 18*3b6c3722Schristos# 19*3b6c3722Schristos# * Neither the name of the organization nor the names of its 20*3b6c3722Schristos# contributors may be used to endorse or promote products derived from this 21*3b6c3722Schristos# software without specific prior written permission. 22*3b6c3722Schristos# 23*3b6c3722Schristos# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 24*3b6c3722Schristos# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED 25*3b6c3722Schristos# TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 26*3b6c3722Schristos# PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE 27*3b6c3722Schristos# LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 28*3b6c3722Schristos# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 29*3b6c3722Schristos# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 30*3b6c3722Schristos# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 31*3b6c3722Schristos# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 32*3b6c3722Schristos# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 33*3b6c3722Schristos# POSSIBILITY OF SUCH DAMAGE. 34*3b6c3722Schristos 35*3b6c3722SchristosSUEXEC = sudo 36*3b6c3722SchristosUNBOUND = ../unbound 37*3b6c3722SchristosSCRIPT = ./test-resip.conf 38*3b6c3722Schristos 39*3b6c3722SchristosUNBOUND_OPTS = -dv -c $(SCRIPT) 40*3b6c3722Schristos 41*3b6c3722Schristos.PHONY: test sudo suexec doc 42*3b6c3722Schristos 43*3b6c3722Schristosall: test 44*3b6c3722Schristos 45*3b6c3722Schristos$(UNBOUND): 46*3b6c3722Schristos make -C .. 47*3b6c3722Schristos 48*3b6c3722Schristostest: $(UNBOUND) 49*3b6c3722Schristos $(UNBOUND) $(UNBOUND_OPTS) 50*3b6c3722Schristos 51*3b6c3722Schristossudo: $(UNBOUND) 52*3b6c3722Schristos sudo $(UNBOUND) $(UNBOUND_OPTS) 53*3b6c3722Schristos 54*3b6c3722Schristossuexec: $(UNBOUND) 55*3b6c3722Schristos su -c "$(UNBOUND) $(UNBOUND_OPTS)" 56*3b6c3722Schristos 57*3b6c3722Schristosdoc: 58*3b6c3722Schristos $(MAKE) -C doc html 59