File: makefile

package info (click to toggle)
libaws 2.5~124785-1
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 7,488 kB
  • ctags: 419
  • sloc: ada: 61,158; makefile: 1,262; ansic: 219; xml: 196; java: 112; python: 66; sed: 43; sh: 34
file content (70 lines) | stat: -rw-r--r-- 3,067 bytes parent folder | download
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
############################################################################
#                              Ada Web Server                              #
#                                                                          #
#                         Copyright (C) 2003-2007                          #
#                                 AdaCore                                  #
#                                                                          #
#  This library is free software; you can redistribute it and/or modify    #
#  it under the terms of the GNU General Public License as published by    #
#  the Free Software Foundation; either version 2 of the License, or (at   #
#  your option) any later version.                                         #
#                                                                          #
#  This library is distributed in the hope that it will be useful, but     #
#  WITHOUT ANY WARRANTY; without even the implied warranty of              #
#  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU       #
#  General Public License for more details.                                #
#                                                                          #
#  You should have received a copy of the GNU General Public License       #
#  along with this library; if not, write to the Free Software Foundation, #
#  Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.          #
#                                                                          #
############################################################################

.SILENT:

ifdef ASIS
GEN   = ada2wsdl-options.adb
endif

force:

ada2wsdl-options.adb: force
	echo "--  This file is generated automatically" > ada2wsdl-options.adb
	echo "--  DO NOT EDIT, see tools/makefile" >> ada2wsdl-options.adb
	echo "with Ada2WSDL.Parser;" >> ada2wsdl-options.adb
	echo "package body Ada2WSDL.Options is" >> ada2wsdl-options.adb
	echo "   procedure Set_Default is" >> ada2wsdl-options.adb
	echo "   begin" >> ada2wsdl-options.adb
	echo "      pragma Style_Checks (Off);" >> ada2wsdl-options.adb
	echo "      Parser.Add_Option (\"-I"$(I_CPN)"\");" \
		>> ada2wsdl-options.adb
	echo "      Parser.Add_Option (\"-I"$(I_INC)"\");" \
		>> ada2wsdl-options.adb
	echo "   end Set_Default;" >> ada2wsdl-options.adb
	echo "end Ada2WSDL.Options;" >> ada2wsdl-options.adb

setup: $(GEN)
	$(MKDIR) -p ../$(BDIR)/obj/tools
	$(MKDIR) -p ../$(BDIR)/tools

build:
	$(GNAT) make -Ptools

install:
	-$(CP) ../$(BDIR)/tools/awsres${EXEEXT} $(I_BIN)
	-$(CP) ../$(BDIR)/tools/hotplug_password${EXEEXT} $(I_BIN)
	-$(CP) ../$(BDIR)/tools/templates2ada${EXEEXT} $(I_BIN)
	-$(CP) ../$(BDIR)/tools/templatespp${EXEEXT} $(I_BIN)
	-$(CP) ../$(BDIR)/tools/webxref${EXEEXT} $(I_BIN)
ifeq ($(XMLADA),true)
	$(CP) ../$(BDIR)/tools/wsdl2aws${EXEEXT} $(I_BIN)
endif
ifeq (${ASIS},true)
	$(CP) ../$(BDIR)/tools/ada2wsdl-main${EXEEXT} $(I_BIN)/ada2wsdl${EXEEXT}
endif

check:
	$(GNAT) check -Ptools -rules -from=../aws.checks

clean:
	$(RM) -fr ../$(BDIR)/tools