Adding some machinery.
[shibboleth/cpp-xmltooling.git] / Makefile.am
1 AUTOMAKE_OPTIONS = foreign
2
3 ACLOCAL_AMFLAGS = -I .
4
5 EXTRA_DIST =
6         schemas \
7         cpp-xmltooling.sln \
8         libtool.m4 \
9         acx_pthread.m4 \
10         depcomp \
11         doxygen.cfg \
12         config_win32.h
13
14 dist-hook:
15         rm -rf `find $(distdir)/xmltoolingtest/data -name .svn`
16         rm -rf `find $(distdir)/schemas -name .svn`
17         rm -rf `find $(distdir)/schemas -name Makefile`
18
19
20 SUBDIRS = schemas xmltooling xmltoolingtest
21
22 all-local: xmltooling.spec pkginfo
23
24 xmltooling.spec: xmltooling.spec.in Makefile
25         rm -f $@.tmp
26         sed < $< > $@.tmp \
27             -e 's:@-VERSION-@:${VERSION}:'
28         mv $@.tmp $@
29
30 pkginfo: pkginfo.in Makefile
31         rm -f $@.tmp
32         sed < $< > $@.tmp \
33             -e 's:@-VERSION-@:${VERSION}:'
34         mv $@.tmp $@
35
36 DISTCLEANFILES = xmltooling.spec pkginfo