X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=sympathy.git;a=blobdiff_plain;f=Makefile.am;h=aeb30df3ad5d29eada744eecaa99f50ca36e7193;hp=33275cd14d01ea493dfa92ccb098f19a82af7d1a;hb=a17e36f776907ddb4f582912243f5359d6e43107;hpb=8aac43cd03b46ad3e3e0852f7d3748916f72adea diff --git a/Makefile.am b/Makefile.am index 33275cd..aeb30df 100644 --- a/Makefile.am +++ b/Makefile.am @@ -2,12 +2,27 @@ # # Makefile.am: # -# Copyright (c) 2008 James McKenzie , +# Copyright (c) 2008 James McKenzie , # All rights reserved. # -# $Id$ +# $Id: Makefile.am,v 1.8 2008/02/28 22:55:27 staffcvs Exp $ +# +# $Log: Makefile.am,v $ +# Revision 1.8 2008/02/28 22:55:27 staffcvs +# *** empty log message *** +# +# Revision 1.7 2008/02/27 18:29:49 james +# *** empty log message *** +# +# Revision 1.6 2008/02/27 16:01:24 james +# *** empty log message *** +# +# Revision 1.5 2008/02/27 15:17:55 james +# *** empty log message *** +# +# Revision 1.4 2008/02/27 15:04:32 james +# *** empty log message *** # -# $Log$ # Revision 1.3 2008/02/27 10:47:34 james # *** empty log message *** # @@ -22,8 +37,17 @@ # SUBDIRS=src apps test +man1_MANS=sympathy.man + bin_SCRIPTS = libsympathy-config +clean-local: + -rm -f libsympathy-config version.sed sympathy.man + +sympathy.man: sympathy.1 version.sed + @SED@ -f version.sed < sympathy.1 > sympathy.man || rm -f sympathy.man + + libsympathy-config.src:libsympathy-config.src.in libsympathy-config:libsympathy-config.src version.sed @SED@ -f version.sed < libsympathy-config.src > libsympathy-config || rm -f libsympathy-config @@ -35,17 +59,23 @@ 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 }' } +VSTP=${shell @GREP@ ${VCHK} ${VFD}/version-stamps | @AWK@ 'BEGIN { FS="\t" }; { print $$2 }' } VDEF=${shell echo `cat ${VFD}/version-major`.`cat ${VFD}/version-minor`.`cat ${VFD}/version-micro` } +VSDF=${shell tail -1 ${VFD}/version-stamps | @AWK@ 'BEGIN { FS="\t" }; { print $$2 }' } -EXTRA_DIST=version-files version-major version-minor version-micro version-md5sums +EXTRA_DIST=version-files version-major version-minor version-micro version-md5sums version-stamps sympathy.1 version.sed: $(VFD)/version-files $(VFD)/version-major \ $(VFD)/version-minor $(VFD)/version-micro \ - $(VFD)/version-md5sums ${VFS} Makefile + $(VFD)/version-md5sums $(VFD)/version-stamps ${VFS} if [ .${VNUM} = . ]; then \ echo "s/%VERSION%/${VDEF}-E/g" > version.sed; \ + echo "s/%VERSIONSTAMP%/After ${VSDF}/g" >> version.sed; \ + echo "s/%LONGVERSION%/Version ${VDEF} + Edits/g" >> version.sed; \ else \ echo "s/%VERSION%/${VNUM}/g" > version.sed; \ + echo "s/%VERSIONSTAMP%/${VSTP}/g" >> version.sed; \ + echo "s/%LONGVERSION%/Version ${VNUM}/g" >> version.sed; \ fi protos: