comparison Makefile.am @ 28247:bc87a89e4401

merge of '9ce1a7ac92f523b7b5b9983746ae57ee1fac1a67' and 'ebf771e2c74addf4821a643a9c9179f4adc67c3b'
author Etan Reisner <pidgin@unreliablesource.net>
date Tue, 08 Sep 2009 02:23:49 +0000
parents 558ce0b09e0e
children f7d03842b9c9
comparison
equal deleted inserted replaced
28238:1f0b2af9e2b8 28247:bc87a89e4401
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