Lines Matching refs:Makefile
7 # AX_ENABLE_BUILDDIR [(dirstring-or-command [,Makefile.mk [,-all]])]
19 # $2 = Makefile.mk
23 # toplevel srcdir Makefile from the information found in the created
24 # toplevel builddir Makefile. It just copies the variables and
38 # Makefile.mk file
40 # The automatic rules are usually scanning the toplevel Makefile for lines
144 pushdef([END],[Makefile.mk])dnl
148 if test -f "$TOP/Makefile" ; then
149 AC_MSG_NOTICE([skipping TOP/Makefile - left untouched])
151 AC_MSG_NOTICE([skipping TOP/Makefile - not created])
154 if test -f "$SRC/Makefile" ; then
155 a=`grep "^VERSION " "$SRC/Makefile"` ; b=`grep "^VERSION " Makefile`
156 test "$a" != "$b" && rm "$SRC/Makefile"
158 if test -f "$SRC/Makefile" ; then
159 echo "$SRC/Makefile : $SRC/Makefile.in" > $tmp/conftemp.mk
162 if grep '^REMOVED,,,' "$SRC/Makefile" >/dev/null
163 then rm $SRC/Makefile ; fi
166 if test ! -f "$SRC/Makefile" ; then
167 AC_MSG_NOTICE([create TOP/Makefile guessed from local Makefile])
206 ; BUILD=$x grep "^#### \$\$HOST " Makefile | sed -e 's/.*|//' $x \\\\\\
209 ; BUILD=$x grep "^####.*|" Makefile |tail -1| sed -e 's/.*|//' $x ; fi \\\\\\
218 ; BUILD=$x grep "^#### \$\$HOST " Makefile | sed -e 's/.*|//' $x \\\\\\
222 ; BUILD=$x grep "^#### .*|" Makefile |tail -1| sed -e 's/.*|//' $x \\\\\\
230 ; BUILD=$x grep "^#### \$\$HOST " Makefile | sed -e 's/.*|//' $x \\\\\\
234 ; BUILD=$x grep "^#### .*|" Makefile |tail -1| sed -e 's/.*|//' $x \\\\\\
242 ; BUILD=$x grep "^#### .*|" Makefile | sed -e 's/.*|//' $x \\\\\\
251 ; echo "rm -r \$\$i"; (rm -r "\$\$i") ; done ; rm Makefile
254 $SED -f $tmp/conftemp.sed Makefile >$SRC/Makefile
256 AC_MSG_NOTICE([extend TOP/Makefile with TOP/m4_ifval([$2],[$2],[END])])
257 cat $SRC/END >>$SRC/Makefile
259 echo "$xxxx CONFIGURATIONS FOR TOPLEVEL MAKEFILE: " >>$SRC/Makefile
261 if grep '^; echo "MAKE ' $SRC/Makefile >/dev/null ; then
263 $SED -e '/^@ HOST=/s/^/ /' -e '/^; /s/^/ /' $SRC/Makefile \
264 >$SRC/Makefile~
265 (test -s $SRC/Makefile~ && mv $SRC/Makefile~ $SRC/Makefile) 2>/dev/null
271 $SED -f "$tmp/conftemp.sed" "$SRC/Makefile" >$tmp/mkfile.tmp
274 if cmp -s "$SRC/Makefile" "$tmp/mkfile.tmp" 2>/dev/null ; then
275 AC_MSG_NOTICE([keeping TOP/Makefile from earlier configure])
278 AC_MSG_NOTICE([reusing TOP/Makefile from earlier configure])
279 mv "$tmp/mkfile.tmp" "$SRC/Makefile"
284 echo "$xxxx" "$ax_enable_builddir_host" "|$SUB" >>$SRC/Makefile