chiark / gitweb /
*** empty log message ***
[sympathy.git] / Makefile.am
1 #
2 #
3 # Makefile.am:
4 #
5 # Copyright (c) 2008 James McKenzie <james@fishsoup.dhs.org>,
6 # All rights reserved.
7 #
8 # $Id$
9 #
10 # $Log$
11 # Revision 1.3  2008/02/27 10:47:34  james
12 # *** empty log message ***
13 #
14 # Revision 1.2  2008/02/24 00:42:52  james
15 # *** empty log message ***
16 #
17 # Revision 1.1  2008/02/03 16:20:23  james
18 # *** empty log message ***
19 #
20 #
21 #
22 #
23 SUBDIRS=src apps test 
24
25 bin_SCRIPTS = libsympathy-config
26
27 libsympathy-config.src:libsympathy-config.src.in
28 libsympathy-config:libsympathy-config.src version.sed
29         @SED@ -f version.sed < libsympathy-config.src > libsympathy-config || rm -f libsympathy-config
30         chmod +x $@
31         
32
33 VFD=${srcdir}
34 VF=${shell cat ${VFD}/version-files}
35 VFS=${VF:%=${VFD}/%}
36 VCHK=${shell cat ${VFS} | @MD5SUM@ | @AWK@ '{print $$1 }' }
37 VNUM=${shell @GREP@ ${VCHK} ${VFD}/version-md5sums | @AWK@ '{ print $$2 }'  }
38 VDEF=${shell echo `cat ${VFD}/version-major`.`cat ${VFD}/version-minor`.`cat ${VFD}/version-micro` }
39
40 EXTRA_DIST=version-files version-major version-minor version-micro version-md5sums
41
42 version.sed: $(VFD)/version-files $(VFD)/version-major \
43         $(VFD)/version-minor $(VFD)/version-micro \
44         $(VFD)/version-md5sums ${VFS} Makefile
45         if [ .${VNUM} = . ]; then \
46                 echo "s/%VERSION%/${VDEF}-E/g" > version.sed; \
47         else \
48                 echo "s/%VERSION%/${VNUM}/g" > version.sed; \
49         fi
50
51 protos:
52         (cd src && ${MAKE} protos)
53
54 tidy:
55         cvs commit -m ""
56         (cd src && ${MAKE} tidy)
57         (cd apps && ${MAKE} tidy)
58
59