Mercurial > vim
comparison src/Makefile @ 5745:2f225a17c26b v7.4.217
updated for version 7.4.217
Problem: When src/auto/configure was updated, "make clean" would run
configure pointlessly.
Solution: Do not run configure for "make clean" and "make distclean" when
the make program supports $MAKECMDGOALS. (Ken Takata)
author | Bram Moolenaar <bram@vim.org> |
---|---|
date | Tue, 25 Mar 2014 15:34:48 +0100 |
parents | 477665b4105f |
children | 4b78922d557c |
comparison
equal
deleted
inserted
replaced
5744:4060b1e16cf1 | 5745:2f225a17c26b |
---|---|
544 # Make will use your choice then -- but beware: Many things may change with | 544 # Make will use your choice then -- but beware: Many things may change with |
545 # another compiler. It is wise to run 'make reconfig' to start all over | 545 # another compiler. It is wise to run 'make reconfig' to start all over |
546 # again. | 546 # again. |
547 #CC = cc | 547 #CC = cc |
548 #CC = gcc | 548 #CC = gcc |
549 #CC = clang | |
549 | 550 |
550 # COMPILER FLAGS - change as you please. Either before running {{{1 | 551 # COMPILER FLAGS - change as you please. Either before running {{{1 |
551 # configure or afterwards. For examples see below. | 552 # configure or afterwards. For examples see below. |
552 # When using -g with some older versions of Linux you might get a | 553 # When using -g with some older versions of Linux you might get a |
553 # statically linked executable. | 554 # statically linked executable. |
1664 if test -f auto/config.cache && \ | 1665 if test -f auto/config.cache && \ |
1665 grep '^ac_cv_env_CFLAGS_value=' auto/config.cache > /dev/null && \ | 1666 grep '^ac_cv_env_CFLAGS_value=' auto/config.cache > /dev/null && \ |
1666 ! grep -x -F 'ac_cv_env_CFLAGS_value=$(CFLAGS)' auto/config.cache > /dev/null; then \ | 1667 ! grep -x -F 'ac_cv_env_CFLAGS_value=$(CFLAGS)' auto/config.cache > /dev/null; then \ |
1667 rm auto/config.cache; \ | 1668 rm auto/config.cache; \ |
1668 fi | 1669 fi |
1669 GUI_INC_LOC="$(GUI_INC_LOC)" GUI_LIB_LOC="$(GUI_LIB_LOC)" \ | 1670 if test "X$(MAKECMDGOALS)" != "Xclean" -a "X$(MAKECMDGOALS)" != "Xdistclean"; then \ |
1671 GUI_INC_LOC="$(GUI_INC_LOC)" GUI_LIB_LOC="$(GUI_LIB_LOC)" \ | |
1670 CC="$(CC)" CPPFLAGS="$(CPPFLAGS)" CFLAGS="$(CFLAGS)" \ | 1672 CC="$(CC)" CPPFLAGS="$(CPPFLAGS)" CFLAGS="$(CFLAGS)" \ |
1671 LDFLAGS="$(LDFLAGS)" $(CONF_SHELL) srcdir="$(srcdir)" \ | 1673 LDFLAGS="$(LDFLAGS)" $(CONF_SHELL) srcdir="$(srcdir)" \ |
1672 ./configure $(CONF_OPT_GUI) $(CONF_OPT_X) $(CONF_OPT_XSMP) \ | 1674 ./configure $(CONF_OPT_GUI) $(CONF_OPT_X) $(CONF_OPT_XSMP) \ |
1673 $(CONF_OPT_DARWIN) $(CONF_OPT_FAIL) \ | 1675 $(CONF_OPT_DARWIN) $(CONF_OPT_FAIL) \ |
1674 $(CONF_OPT_PERL) $(CONF_OPT_PYTHON) $(CONF_OPT_PYTHON3) \ | 1676 $(CONF_OPT_PERL) $(CONF_OPT_PYTHON) $(CONF_OPT_PYTHON3) \ |
1677 $(CONF_OPT_OUTPUT) $(CONF_OPT_GPM) $(CONF_OPT_WORKSHOP) \ | 1679 $(CONF_OPT_OUTPUT) $(CONF_OPT_GPM) $(CONF_OPT_WORKSHOP) \ |
1678 $(CONF_OPT_SNIFF) $(CONF_OPT_FEAT) $(CONF_TERM_LIB) \ | 1680 $(CONF_OPT_SNIFF) $(CONF_OPT_FEAT) $(CONF_TERM_LIB) \ |
1679 $(CONF_OPT_COMPBY) $(CONF_OPT_ACL) $(CONF_OPT_NETBEANS) \ | 1681 $(CONF_OPT_COMPBY) $(CONF_OPT_ACL) $(CONF_OPT_NETBEANS) \ |
1680 $(CONF_ARGS) $(CONF_OPT_MZSCHEME) $(CONF_OPT_PLTHOME) \ | 1682 $(CONF_ARGS) $(CONF_OPT_MZSCHEME) $(CONF_OPT_PLTHOME) \ |
1681 $(CONF_OPT_LUA) $(CONF_OPT_LUA_PREFIX) \ | 1683 $(CONF_OPT_LUA) $(CONF_OPT_LUA_PREFIX) \ |
1682 $(CONF_OPT_SYSMOUSE) | 1684 $(CONF_OPT_SYSMOUSE); \ |
1685 fi | |
1683 | 1686 |
1684 # Use "make reconfig" to rerun configure without cached values. | 1687 # Use "make reconfig" to rerun configure without cached values. |
1685 # When config.h changes, most things will be recompiled automatically. | 1688 # When config.h changes, most things will be recompiled automatically. |
1686 # Invoke $(MAKE) to run config with the empty auto/config.mk. | 1689 # Invoke $(MAKE) to run config with the empty auto/config.mk. |
1687 # Invoke $(MAKE) to build all with the filled auto/config.mk. | 1690 # Invoke $(MAKE) to build all with the filled auto/config.mk. |