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