Lines Matching full: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
37 # in the srcdir toplevel makefile - these parts are read from the $2 =
38 # Makefile.mk file
40 # The automatic rules are usually scanning the toplevel Makefile for lines
145 pushdef([END],[Makefile.mk])dnl
149 if test -f "$TOP/Makefile" ; then
150 AC_MSG_NOTICE([skipping TOP/Makefile - left untouched])
152 AC_MSG_NOTICE([skipping TOP/Makefile - not created])
155 if test -f "$SRC/Makefile" ; then
156 a=`grep "^VERSION " "$SRC/Makefile"` ; b=`grep "^VERSION " Makefile`
157 test "$a" != "$b" && rm "$SRC/Makefile"
159 if test -f "$SRC/Makefile" ; then
160 echo "$SRC/Makefile : $SRC/Makefile.in" > $tmp/conftemp.mk
163 if grep '^REMOVED,,,' "$SRC/Makefile" >/dev/null
164 then rm $SRC/Makefile ; fi
167 if test ! -f "$SRC/Makefile" ; then
168 AC_MSG_NOTICE([create TOP/Makefile guessed from local Makefile])
207 ; BUILD=$x grep "^#### \$\$HOST " Makefile | sed -e 's/.*|//' $x \\\\\\
210 ; BUILD=$x grep "^####.*|" Makefile |tail -1| sed -e 's/.*|//' $x ; fi \\\\\\
219 ; BUILD=$x grep "^#### \$\$HOST " Makefile | sed -e 's/.*|//' $x \\\\\\
223 ; BUILD=$x grep "^#### .*|" Makefile |tail -1| sed -e 's/.*|//' $x \\\\\\
231 ; BUILD=$x grep "^#### \$\$HOST " Makefile | sed -e 's/.*|//' $x \\\\\\
235 ; BUILD=$x grep "^#### .*|" Makefile |tail -1| sed -e 's/.*|//' $x \\\\\\
243 ; BUILD=$x grep "^#### .*|" Makefile | sed -e 's/.*|//' $x \\\\\\
252 ; echo "rm -r \$\$i"; (rm -r "\$\$i") ; done ; rm Makefile
254 cp "$tmp/conftemp.sed" "$SRC/makefile.sed~" ## DEBUGGING
255 $SED -f $tmp/conftemp.sed Makefile >$SRC/Makefile
257 AC_MSG_NOTICE([extend TOP/Makefile with TOP/m4_ifval([$2],[$2],[END])])
258 cat $SRC/END >>$SRC/Makefile
260 echo "$xxxx CONFIGURATIONS FOR TOPLEVEL MAKEFILE: " >>$SRC/Makefile
262 if grep '^; echo "MAKE ' $SRC/Makefile >/dev/null ; then
264 $SED -e '/^@ HOST=/s/^/ /' -e '/^; /s/^/ /' $SRC/Makefile \
265 >$SRC/Makefile~
266 (test -s $SRC/Makefile~ && mv $SRC/Makefile~ $SRC/Makefile) 2>/dev/null
272 $SED -f "$tmp/conftemp.sed" "$SRC/Makefile" >$tmp/mkfile.tmp
275 if cmp -s "$SRC/Makefile" "$tmp/mkfile.tmp" 2>/dev/null ; then
276 AC_MSG_NOTICE([keeping TOP/Makefile from earlier configure])
279 AC_MSG_NOTICE([reusing TOP/Makefile from earlier configure])
280 mv "$tmp/mkfile.tmp" "$SRC/Makefile"
285 echo "$xxxx" "$ax_enable_builddir_host" "|$SUB" >>$SRC/Makefile