5 # Copyright (c) 2008 James McKenzie <james@fishsoup.dhs.org>,
11 # Revision 1.1 2008/02/03 16:20:23 james
12 # *** empty log message ***
19 bin_SCRIPTS = libsympathy-config
21 libsympathy-config.src:libsympathy-config.src.in
22 libsympathy-config:libsympathy-config.src version.sed
23 @SED@ -f version.sed < libsympathy-config.src > libsympathy-config || rm -f libsympathy-config
28 VF=${shell cat ${VFD}/version-files}
30 VCHK=${shell cat ${VFS} | @MD5SUM@ | @AWK@ '{print $$1 }' }
31 VNUM=${shell @GREP@ ${VCHK} ${VFD}/version-md5sums | @AWK@ '{ print $$2 }' }
32 VDEF=${shell echo `cat ${VFD}/version-major`.`cat ${VFD}/version-minor`.`cat ${VFD}/version-micro` }
34 version.sed: $(VFD)/version-files $(VFD)/version-major \
35 $(VFD)/version-minor $(VFD)/version-micro \
36 $(VFD)/version-md5sums ${VFS} Makefile
37 if [ .${VNUM} = . ]; then \
38 echo "s/%VERSION%/${VDEF}-E/g" > version.sed; \
40 echo "s/%VERSION%/${VNUM}/g" > version.sed; \