makefiles: Only define the dummy target in makefiles that need it.

Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Alexandre Julliard 2015-10-22 21:36:15 +09:00
parent ded44ed947
commit 90d66cc874
4 changed files with 9 additions and 4 deletions

View File

@ -72,7 +72,6 @@ conf_manext = 5
@SET_MAKE@
all:
dummy:
.PHONY: all dummy
.PHONY: all
# End of common header

View File

@ -50,8 +50,9 @@ uninstall:: __uninstall__
# dependencies needed to build any dll or program
__tooldeps__: libs/port libs/wine libs/wpp
__builddeps__: __tooldeps__ include
.PHONY: depend check test testclean crosstest __tooldeps__ __builddeps__
.PHONY: depend dummy check test testclean crosstest __tooldeps__ __builddeps__
dummy:
loader: libs/port libs/wine tools
server: libs/port libs/wine tools include
fonts: tools/sfnt2fon

View File

@ -107,8 +107,10 @@ config_EXTRADEFS = \
version.c: dummy
version=`(GIT_DIR=$(top_srcdir)/.git git describe HEAD 2>/dev/null || echo "wine-@PACKAGE_VERSION@") | sed -n -e '$$s/\(.*\)/const char wine_build[] = "\1";/p'` && (echo $$version | cmp -s - $@) || echo $$version >$@ || ($(RM) $@ && exit 1)
dummy:
# Make sure that make_makefiles sees the generated rules
.PHONY: install install-lib install-dev uninstall
.PHONY: dummy install install-lib install-dev uninstall
install install-lib::
install install-dev::
clean::

View File

@ -26,3 +26,6 @@ build.nfo:
build.res: build.rc build.nfo
$(WRC) -o $@ build.rc
dummy:
.PHONY: dummy