makefiles: Make sure that all phony targets depend on 'dummy'.
This commit is contained in:
parent
a82f1b0ebb
commit
dc8c76ae3c
|
@ -181,7 +181,7 @@ LINTS = $(C_SRCS:.c=.ln)
|
||||||
|
|
||||||
all: Makefile
|
all: Makefile
|
||||||
|
|
||||||
filter:
|
filter: dummy
|
||||||
@$(TOPSRCDIR)/tools/winapi/make_filter --make $(MAKE) all
|
@$(TOPSRCDIR)/tools/winapi/make_filter --make $(MAKE) all
|
||||||
|
|
||||||
.PHONY: all filter
|
.PHONY: all filter
|
||||||
|
@ -226,7 +226,7 @@ DEPEND_SRCS = $(C_SRCS) $(C_SRCS16) $(RC_SRCS) $(RC_SRCS16) $(MC_SRCS) $(IDL_SRC
|
||||||
$(SUBDIRS:%=%/__depend__): dummy
|
$(SUBDIRS:%=%/__depend__): dummy
|
||||||
@cd `dirname $@` && $(MAKE) depend
|
@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)
|
$(MAKEDEP) -C$(SRCDIR) -S$(TOPSRCDIR) -T$(TOPOBJDIR) $(EXTRAINCL) $(DEPEND_SRCS)
|
||||||
|
|
||||||
.PHONY: depend $(SUBDIRS:%=%/__depend__)
|
.PHONY: depend $(SUBDIRS:%=%/__depend__)
|
||||||
|
|
|
@ -118,7 +118,7 @@ TAGS etags:
|
||||||
tags ctags:
|
tags ctags:
|
||||||
find $(TOPSRCDIR)/ -name '*.[ch]' -print | ctags --c-types=+px -L -
|
find $(TOPSRCDIR)/ -name '*.[ch]' -print | ctags --c-types=+px -L -
|
||||||
|
|
||||||
manpages htmlpages sgmlpages:
|
manpages htmlpages sgmlpages: dummy
|
||||||
@cd documentation && $(MAKE) $@
|
@cd documentation && $(MAKE) $@
|
||||||
|
|
||||||
clean::
|
clean::
|
||||||
|
|
|
@ -69,13 +69,13 @@ crosstest:: $(SUBDIRS:%=%/__crosstest__)
|
||||||
|
|
||||||
# Rules for auto documentation
|
# 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)
|
$(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)
|
$(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)
|
$(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
|
.PHONY: man doc-html doc-sgml
|
||||||
|
@ -88,28 +88,26 @@ ALL_SPECS16 = $(DRV_SPECS16:.spec=.dll16)
|
||||||
|
|
||||||
WIN16_INSTALL = $(SPEC_SRCS16:%=_install_/%)
|
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_/%)
|
.PHONY: $(SPEC_SRCS16:%=_install_/%) $(ALL_SPECS16:%=_install_/%) $(IMPORTLIB:%=_install_/%) $(IMPLIB_SRCS:%=_install_static_implib_/%)
|
||||||
|
|
||||||
$(SPEC_SRCS16:%=_install_/%): $(ALL_SPECS16:%=_install_/%)
|
$(SPEC_SRCS16:%=_install_/%): $(ALL_SPECS16:%=_install_/%)
|
||||||
|
|
||||||
$(ALL_SPECS16:%=_install_/%): $(DESTDIR)$(dlldir)
|
$(ALL_SPECS16:%=_install_/%): $(DESTDIR)$(dlldir) dummy
|
||||||
echo "$(MODULE)" > $(DESTDIR)$(dlldir)/`basename $@`
|
echo "$(MODULE)" > $(DESTDIR)$(dlldir)/`basename $@`
|
||||||
|
|
||||||
install_lib: $(MODULE)$(DLLEXT) $(DESTDIR)$(dlldir)
|
$(IMPORTLIB:%=_install_/%): $(IMPORTLIB) $(DESTDIR)$(dlldir) dummy
|
||||||
$(INSTALL_PROGRAM) $(MODULE)$(DLLEXT) $(DESTDIR)$(dlldir)/$(MODULE)$(DLLEXT)
|
|
||||||
|
|
||||||
$(IMPORTLIB:%=_install_/%): $(IMPORTLIB) $(DESTDIR)$(dlldir)
|
|
||||||
$(INSTALL_DATA) $(IMPORTLIB) $(DESTDIR)$(dlldir)/$(IMPORTLIB)
|
$(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_DATA) $(STATICIMPLIB) $(DESTDIR)$(dlldir)/$(STATICIMPLIB)
|
||||||
|
|
||||||
install_static_implib_a:
|
install_static_implib_a:
|
||||||
|
|
||||||
$(IMPLIB_SRCS:%=_install_static_implib_/%): install_static_implib_$(IMPLIBEXT)
|
$(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_/%)
|
install install-dev:: $(IMPORTLIB:%=_install_/%) $(IMPLIB_SRCS:%=_install_static_implib_/%)
|
||||||
|
|
||||||
|
|
|
@ -4,25 +4,22 @@ SRCDIR = @srcdir@
|
||||||
VPATH = @srcdir@
|
VPATH = @srcdir@
|
||||||
MODULE = none
|
MODULE = none
|
||||||
|
|
||||||
INSTALLDIRS = $(DESTDIR)$(mandir)/man$(api_manext)
|
INSTALLDIRS = man$(api_manext) html api-guide $(DESTDIR)$(mandir)/man$(api_manext)
|
||||||
|
|
||||||
@MAKE_RULES@
|
@MAKE_RULES@
|
||||||
|
|
||||||
manpages:
|
manpages: man$(api_manext) dummy
|
||||||
$(MKINSTALLDIRS) man$(api_manext)
|
|
||||||
@cd $(DLLDIR) && $(MAKE) man
|
@cd $(DLLDIR) && $(MAKE) man
|
||||||
|
|
||||||
htmlpages:
|
htmlpages: html dummy
|
||||||
$(MKINSTALLDIRS) html
|
|
||||||
@cd $(DLLDIR) && $(MAKE) doc-html
|
@cd $(DLLDIR) && $(MAKE) doc-html
|
||||||
|
|
||||||
sgmlpages:
|
sgmlpages: api-guide dummy
|
||||||
$(MKINSTALLDIRS) api-guide
|
|
||||||
@cd $(DLLDIR) && $(MAKE) doc-sgml
|
@cd $(DLLDIR) && $(MAKE) doc-sgml
|
||||||
|
|
||||||
.PHONY: manpages htmlpages sgmlpages
|
.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
|
for i in man$(api_manext)/*.$(api_manext); do $(INSTALL_DATA) $$i $(DESTDIR)$(mandir)/$$i; done
|
||||||
|
|
||||||
clean::
|
clean::
|
||||||
|
|
Loading…
Reference in New Issue