forked from linknx/linknx
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.xml
114 lines (89 loc) · 3.78 KB
/
build.xml
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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
<?xml version="1.0"?>
<!--
=======================================================================
antiauto - an ant build file template for automake based projects
Copyright (c) 2005 Michael Koch ([email protected])
This program 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 program 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 program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
History:
0.1 Initial public version.
=======================================================================
-->
<project name="template" default="build" basedir=".">
<property file="antiauto.properties" prefix="antiauto"/>
<target name="init">
<mkdir dir="${antiauto.build}"/>
<available file="${antiauto.src}/autogen.sh" type="file" property="antiauto.autogen"/>
<available file="${antiauto.configure}" type="file" property="antiauto.configurescript"/>
<available file="${antiauto.build}/Makefile" type="file" property="antiauto.makefiles"/>
</target>
<target name="autogen" if="antiauto.autogen" unless="antiauto.configurescript" depends="init">
<echo message="Running autogen.sh ..."/>
<exec dir="${antiauto.src}" executable="${antiauto.src}/autogen.sh" failonerror="true">
<env key="AUTOGEN_SUBDIR_MODE" value="1"/>
</exec>
</target>
<target name="configure" unless="antiauto.makefiles" depends="autogen">
<echo message="Running configure ..."/>
<exec dir="${antiauto.build}" executable="../${antiauto.configure}" failonerror="true">
<arg line="${antiauto.configureflags}"/>
</exec>
</target>
<target name="build" depends="configure">
<echo message="Running make ..."/>
<exec dir="${antiauto.build}" executable="make" failonerror="true"/>
</target>
<target name="check" depends="build">
<echo message="Running make check ..."/>
<exec dir="${antiauto.build}" executable="make" failonerror="true">
<arg line="check CXXFLAGS='-g -O0'"/>
</exec>
</target>
<target name="distcheck" depends="configure">
<echo message="Running make distcheck ..."/>
<exec dir="${antiauto.build}" executable="make" failonerror="true">
<arg line="distcheck"/>
</exec>
</target>
<target name="install" depends="build">
<echo message="Running make install ..."/>
<exec dir="${antiauto.build}" executable="make" failonerror="true">
<arg line="install"/>
</exec>
</target>
<target name="clean" depends="configure">
<echo message="Running make clean ..."/>
<exec dir="${antiauto.build}" executable="make">
<arg line="clean"/>
</exec>
</target>
<target name="dist" depends="configure">
<echo message="Running make dist ..."/>
<exec dir="${antiauto.build}" executable="make">
<arg line="dist"/>
</exec>
</target>
<target name="distclean" depends="configure">
<echo message="Running make distclean..."/>
<exec dir="${antiauto.build}" executable="make">
<arg line="distclean"/>
</exec>
</target>
<target name="cvs-update">
<echo message="Running cvs update ..."/>
<cvs dest="${antiauto.src}" command="update -A -d" cvsRsh="ssh"/>
</target>
<target name="cvs-purge">
<echo message="Running cvspurge ..."/>
<exec dir="${antiauto.src}" executable="cvspurge"/>
</target>
</project>