# # # Makefile.am: # # Copyright (c) 2009 James McKenzie <20@madingley.org>, # All rights reserved. # # $Id$ # # $Log$ # Revision 1.4 2009/02/08 19:07:29 root # *** empty log message *** # # Revision 1.3 2009/02/08 19:05:52 root # *** empty log message *** # # Revision 1.2 2009/02/08 16:56:26 root # *** empty log message *** # # # # SUBDIRS=src test app EXTRA_DIST= version-major version-minor version-micro version-files version-md5sums bin_SCRIPTS = libjwg-config pkgconfigdir=${libdir}/pkgconfig pkgconfig_DATA= libjwg.pc libjwg.pc.src:libjwg.pc.src.in libjwg.pc:libjwg.pc.src @SED@ -f version.sed < libjwg.pc.src > libjwg.pc || rm -f libjwg.pc libjwg-config.src:libjwg-config.src.in libjwg-config:libjwg-config.src version.sed @SED@ -f version.sed < libjwg-config.src > libjwg-config || rm -f libjwg-config chmod +x $@ VFD=${srcdir} VF=${shell cat ${VFD}/version-files} VFS=${VF:%=${VFD}/%} VCHK=${shell cat ${VFS} | @MD5SUM@ | @AWK@ '{print $$1 }' } VNUM=${shell @GREP@ ${VCHK} ${VFD}/version-md5sums | @AWK@ '{ print $$2 }' } VDEF=${shell echo `cat ${VFD}/version-major`.`cat ${VFD}/version-minor`.`cat ${VFD}/version-micro` } version.sed: $(VFD)/version-files $(VFD)/version-major \ $(VFD)/version-minor $(VFD)/version-micro \ $(VFD)/version-md5sums ${VFS} Makefile if [ .${VNUM} = . ]; then \ echo "s/%VERSION%/${VDEF}-E/g" > version.sed; \ else \ echo "s/%VERSION%/${VNUM}/g" > version.sed; \ fi