makefiles: Make sure that all phony targets depend on 'dummy'.

This commit is contained in:
Alexandre Julliard 2006-09-09 23:09:04 +02:00
parent a82f1b0ebb
commit dc8c76ae3c
4 changed files with 17 additions and 22 deletions

View File

@ -181,7 +181,7 @@ LINTS = $(C_SRCS:.c=.ln)
all: Makefile
filter:
filter: dummy
@$(TOPSRCDIR)/tools/winapi/make_filter --make $(MAKE) all
.PHONY: all filter
@ -226,7 +226,7 @@ DEPEND_SRCS = $(C_SRCS) $(C_SRCS16) $(RC_SRCS) $(RC_SRCS16) $(MC_SRCS) $(IDL_SRC
$(SUBDIRS:%=%/__depend__): dummy
@cd `dirname $@` && $(MAKE) depend
depend: $(IDL_SRCS:.idl=.h) $(SUBDIRS:%=%/__depend__)
depend: $(IDL_SRCS:.idl=.h) $(SUBDIRS:%=%/__depend__) dummy
$(MAKEDEP) -C$(SRCDIR) -S$(TOPSRCDIR) -T$(TOPOBJDIR) $(EXTRAINCL) $(DEPEND_SRCS)
.PHONY: depend $(SUBDIRS:%=%/__depend__)

View File

@ -118,7 +118,7 @@ TAGS etags:
tags ctags:
find $(TOPSRCDIR)/ -name '*.[ch]' -print | ctags --c-types=+px -L -
manpages htmlpages sgmlpages:
manpages htmlpages sgmlpages: dummy
@cd documentation && $(MAKE) $@
clean::

View File

@ -69,13 +69,13 @@ crosstest:: $(SUBDIRS:%=%/__crosstest__)
# Rules for auto documentation
man: $(C_SRCS)
man: $(C_SRCS) dummy
$(C2MAN) -o $(TOPOBJDIR)/documentation/man$(api_manext) -R$(TOPOBJDIR) -C$(SRCDIR) -S$(api_manext) $(INCLUDES) $(MAINSPEC:%=-w %) $(SPEC_SRCS16:%=-w %) $(C_SRCS) $(C_SRCS16)
doc-html: $(C_SRCS)
doc-html: $(C_SRCS) dummy
$(C2MAN) -o $(TOPOBJDIR)/documentation/html -R$(TOPOBJDIR) -C$(SRCDIR) $(INCLUDES) -Th $(MAINSPEC:%=-w %) $(SPEC_SRCS16:%=-w %) $(C_SRCS) $(C_SRCS16)
doc-sgml: $(C_SRCS)
doc-sgml: $(C_SRCS) dummy
$(C2MAN) -o $(TOPOBJDIR)/documentation/api-guide -R$(TOPOBJDIR) -C$(SRCDIR) $(INCLUDES) -Ts $(MAINSPEC:%=-w %) $(SPEC_SRCS16:%=-w %) $(C_SRCS) $(C_SRCS16)
.PHONY: man doc-html doc-sgml
@ -88,28 +88,26 @@ ALL_SPECS16 = $(DRV_SPECS16:.spec=.dll16)
WIN16_INSTALL = $(SPEC_SRCS16:%=_install_/%)
.PHONY: install_lib install_static_implib_def install_static_implib_a
.PHONY: install_static_implib_def install_static_implib_a
.PHONY: $(SPEC_SRCS16:%=_install_/%) $(ALL_SPECS16:%=_install_/%) $(IMPORTLIB:%=_install_/%) $(IMPLIB_SRCS:%=_install_static_implib_/%)
$(SPEC_SRCS16:%=_install_/%): $(ALL_SPECS16:%=_install_/%)
$(ALL_SPECS16:%=_install_/%): $(DESTDIR)$(dlldir)
$(ALL_SPECS16:%=_install_/%): $(DESTDIR)$(dlldir) dummy
echo "$(MODULE)" > $(DESTDIR)$(dlldir)/`basename $@`
install_lib: $(MODULE)$(DLLEXT) $(DESTDIR)$(dlldir)
$(INSTALL_PROGRAM) $(MODULE)$(DLLEXT) $(DESTDIR)$(dlldir)/$(MODULE)$(DLLEXT)
$(IMPORTLIB:%=_install_/%): $(IMPORTLIB) $(DESTDIR)$(dlldir)
$(IMPORTLIB:%=_install_/%): $(IMPORTLIB) $(DESTDIR)$(dlldir) dummy
$(INSTALL_DATA) $(IMPORTLIB) $(DESTDIR)$(dlldir)/$(IMPORTLIB)
install_static_implib_def: $(STATICIMPLIB) $(DESTDIR)$(dlldir)
install_static_implib_def: $(STATICIMPLIB) $(DESTDIR)$(dlldir) dummy
$(INSTALL_DATA) $(STATICIMPLIB) $(DESTDIR)$(dlldir)/$(STATICIMPLIB)
install_static_implib_a:
$(IMPLIB_SRCS:%=_install_static_implib_/%): install_static_implib_$(IMPLIBEXT)
install install-lib:: install_lib @WIN16_INSTALL@
install install-lib:: $(MODULE)$(DLLEXT) $(DESTDIR)$(dlldir) @WIN16_INSTALL@ dummy
$(INSTALL_PROGRAM) $(MODULE)$(DLLEXT) $(DESTDIR)$(dlldir)/$(MODULE)$(DLLEXT)
install install-dev:: $(IMPORTLIB:%=_install_/%) $(IMPLIB_SRCS:%=_install_static_implib_/%)

View File

@ -4,25 +4,22 @@ SRCDIR = @srcdir@
VPATH = @srcdir@
MODULE = none
INSTALLDIRS = $(DESTDIR)$(mandir)/man$(api_manext)
INSTALLDIRS = man$(api_manext) html api-guide $(DESTDIR)$(mandir)/man$(api_manext)
@MAKE_RULES@
manpages:
$(MKINSTALLDIRS) man$(api_manext)
manpages: man$(api_manext) dummy
@cd $(DLLDIR) && $(MAKE) man
htmlpages:
$(MKINSTALLDIRS) html
htmlpages: html dummy
@cd $(DLLDIR) && $(MAKE) doc-html
sgmlpages:
$(MKINSTALLDIRS) api-guide
sgmlpages: api-guide dummy
@cd $(DLLDIR) && $(MAKE) doc-sgml
.PHONY: manpages htmlpages sgmlpages
install:: manpages $(INSTALLDIRS)
install:: manpages $(DESTDIR)$(mandir)/man$(api_manext)
for i in man$(api_manext)/*.$(api_manext); do $(INSTALL_DATA) $$i $(DESTDIR)$(mandir)/$$i; done
clean::