Debian Codegraph @

regtests/Makefile

raw
1 ############################################################################
2 # Ada Web Server #
3 # #
4 # Copyright (C) 2003-2022, AdaCore #
5 # #
6 # This is free software; you can redistribute it and/or modify it #
7 # under terms of the GNU General Public License as published by the #
8 # Free Software Foundation; either version 3, or (at your option) any #
9 # later version. This software is distributed in the hope that it will #
10 # be useful, but WITHOUT ANY WARRANTY; without even the implied warranty #
11 # of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU #
12 # General Public License for more details. #
13 # #
14 # You should have received a copy of the GNU General Public License #
15 # distributed with this software; see file COPYING3. If not, go #
16 # to http://www.gnu.org/licenses for a complete copy of the license. #
17 ############################################################################
18
19 ifndef VERBOSE_MAKE
20 .SILENT:
21 endif
22
23 -include ../makefile.setup
24
25 build:
26 $(GPRBUILD) -q -p -XLIBRARY_TYPE=$(DEFAULT_LIBRARY_TYPE) \
27 $(foreach v,PRJ_TARGET PRJ_BUILD TARGET VERSION,"-X$(v)=$($(v))") \
28 --subdirs=$(SDIR)/$(DEFAULT_LIBRARY_TYPE) -Pregtests
29
30 test: build
31 ADA_PROJECT_PATH="$(abspath $(CURDIR)/..)" \
32 PATH=.:${PATH} \
33 $(foreach v,PRJ_TARGET PRJ_BUILD TARGET TP_XMLADA,$(v)="$($(v))") \
34 ./testsuite.py --jobs=4
35
36 clean:
37 -$(GPRCLEAN) -XLIBRARY_TYPE=$(DEFAULT_LIBRARY_TYPE) \
38 $(foreach v,PRJ_TARGET PRJ_BUILD TARGET VERSION,"-X$(v)=$($(v))") \
39 --subdirs=$(SDIR)/$(DEFAULT_LIBRARY_TYPE) -Pregtests
40 rm -fr out
41 rm -f *.pyc