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@ @SET_MAKE@
all: all:
dummy: .PHONY: all
.PHONY: all dummy
# End of common header # End of common header

View file

@ -50,8 +50,9 @@ uninstall:: __uninstall__
# dependencies needed to build any dll or program # dependencies needed to build any dll or program
__tooldeps__: libs/port libs/wine libs/wpp __tooldeps__: libs/port libs/wine libs/wpp
__builddeps__: __tooldeps__ include __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 loader: libs/port libs/wine tools
server: libs/port libs/wine tools include server: libs/port libs/wine tools include
fonts: tools/sfnt2fon fonts: tools/sfnt2fon

View file

@ -107,8 +107,10 @@ config_EXTRADEFS = \
version.c: dummy 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) 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 # 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-lib::
install install-dev:: install install-dev::
clean:: clean::

View file

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