Mercurial > pidgin
comparison Makefile.am @ 29107:339cb6c7f0fd
merge of '6aa03fdea8a7360d07b6a8c72cfd0796a2990753'
and 'c047500743d38f32ef46dd29915364cca00299a8'
author | John Bailey <rekkanoryo@rekkanoryo.org> |
---|---|
date | Wed, 16 Sep 2009 15:44:34 +0000 |
parents | 558ce0b09e0e |
children | f7d03842b9c9 |
comparison
equal
deleted
inserted
replaced
29105:94f85ba7e5a9 | 29107:339cb6c7f0fd |
---|---|
98 REAL_BLDDIR=$$PWD/$(top_builddir); \ | 98 REAL_BLDDIR=$$PWD/$(top_builddir); \ |
99 (cd $(srcdir) && $$REAL_BLDDIR/mtn --root=. automate get_base_revision_id) 2>/dev/null >$@ \ | 99 (cd $(srcdir) && $$REAL_BLDDIR/mtn --root=. automate get_base_revision_id) 2>/dev/null >$@ \ |
100 || (cd $(srcdir) && mtn --root=. automate get_base_revision_id) 2>/dev/null >$@ \ | 100 || (cd $(srcdir) && mtn --root=. automate get_base_revision_id) 2>/dev/null >$@ \ |
101 || rm -f $@ | 101 || rm -f $@ |
102 package_revision.h: package_revision_raw.txt | 102 package_revision.h: package_revision_raw.txt |
103 if [ -f $< ]; then \ | 103 if test -f $<; then \ |
104 sed 's/^\(.\+\)$$/#define REVISION "\1"/' $< > $@; \ | 104 echo "#define REVISION \"`cat $<`\"" > $@; \ |
105 fi | 105 fi |
106 if [ ! -f $@ -a -f $(srcdir)/$@ ]; then \ | 106 if test ! -f $@ -a -f $(srcdir)/$@; then \ |
107 cp $(srcdir)/$@ $@; \ | 107 cp $(srcdir)/$@ $@; \ |
108 fi | 108 fi |
109 [ -f $@ ] || echo "#define REVISION \"unknown\"" > $@ | 109 test -f $@ || echo "#define REVISION \"unknown\"" > $@ |
110 | 110 |
111 # This is a magic directive copy-and-pasted, then modified, from the | 111 # This is a magic directive copy-and-pasted, then modified, from the |
112 # automake 1.9 manual, section 13.4, "Checking the distribution". | 112 # automake 1.9 manual, section 13.4, "Checking the distribution". |
113 # Normally, 'distcheck' does a clean build, and then afterwards runs | 113 # Normally, 'distcheck' does a clean build, and then afterwards runs |
114 # 'distclean', and 'distclean' is supposed to remove everything that | 114 # 'distclean', and 'distclean' is supposed to remove everything that |