blob: 778ebd9d7c8a6833a3efd4bf7173cba96ef7ad96 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
|
#
#
# Makefile.am:
#
# Copyright (c) 2008 James McKenzie <james@fishsoup.dhs.org>,
# All rights reserved.
#
# $Id$
#
# $Log$
# Revision 1.1 2008/02/03 16:20:23 james
# *** empty log message ***
#
#
#
#
SUBDIRS=src apps test
bin_SCRIPTS = libsympathy-config
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
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
|