comparison Makefile @ 2705:58f47e17ba15 v7.3.122

updated for version 7.3.122 Problem: Having auto/config.mk in the repository causes problems. Solution: Remove auto/config.mk from the distribution. In the toplevel Makefile copy it from the "dist" file.
author Bram Moolenaar <bram@vim.org>
date Tue, 15 Feb 2011 15:28:09 +0100
parents 073ff46fe397
children 3dafc80e781b
comparison
equal deleted inserted replaced
2704:a14db0b78c59 2705:58f47e17ba15
21 # "make first", so that the target from "src/auto/config.mk" is picked 21 # "make first", so that the target from "src/auto/config.mk" is picked
22 # up properly when config didn't run yet. Doing "make all" before configure 22 # up properly when config didn't run yet. Doing "make all" before configure
23 # has run can result in compiling with $(CC) empty. 23 # has run can result in compiling with $(CC) empty.
24 24
25 first: 25 first:
26 @if test ! -f src/auto/config.mk; then \
27 cp src/config.mk.dist src/auto/config.mk; \
28 fi
26 @echo "Starting make in the src directory." 29 @echo "Starting make in the src directory."
27 @echo "If there are problems, cd to the src directory and run make there" 30 @echo "If there are problems, cd to the src directory and run make there"
28 cd src && $(MAKE) $@ 31 cd src && $(MAKE) $@
29 32
30 # Some make programs use the last target for the $@ default; put the other 33 # Some make programs use the last target for the $@ default; put the other
31 # targets separately to always let $@ expand to "first" by default. 34 # targets separately to always let $@ expand to "first" by default.
32 all install uninstall tools config configure reconfig proto depend lint tags types test testclean clean distclean: 35 all install uninstall tools config configure reconfig proto depend lint tags types test testclean clean distclean:
36 @if test ! -f src/auto/config.mk; then \
37 cp src/config.mk.dist src/auto/config.mk; \
38 fi
33 @echo "Starting make in the src directory." 39 @echo "Starting make in the src directory."
34 @echo "If there are problems, cd to the src directory and run make there" 40 @echo "If there are problems, cd to the src directory and run make there"
35 cd src && $(MAKE) $@ 41 cd src && $(MAKE) $@
36 42
37 43