Alexandre Julliard : makefiles: Avoid wildcard substitutions that are broken in BSD make.

Alexandre Julliard julliard at winehq.org
Tue Jul 2 14:31:29 CDT 2013


Module: wine
Branch: master
Commit: ebe555d1461c588d8ff649471f5ba596899c5af4
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=ebe555d1461c588d8ff649471f5ba596899c5af4

Author: Alexandre Julliard <julliard at winehq.org>
Date:   Tue Jul  2 12:40:59 2013 +0200

makefiles: Avoid wildcard substitutions that are broken in BSD make.

---

 Make.rules.in     |    9 +++++----
 tools/Makefile.in |    2 +-
 2 files changed, 6 insertions(+), 5 deletions(-)

diff --git a/Make.rules.in b/Make.rules.in
index 3bc86da..486a437 100644
--- a/Make.rules.in
+++ b/Make.rules.in
@@ -25,9 +25,10 @@ IDL_GEN_HEADERS = $(IDL_H_SRCS:.idl=.h) $(IDL_C_SRCS:.idl=.h) $(IDL_I_SRCS:.idl=
                   $(IDL_P_SRCS:.idl=.h) $(IDL_S_SRCS:.idl=.h)
 
 CLEAN_FILES   = *.o *.a *.so *.mo *.ln *.res *.fake core
-CLEAN_TARGETS = $(IDL_GEN_C_SRCS) $(IDL_GEN_HEADERS) $(IDL_TLB_SRCS:.idl=.tlb) $(IDL_P_SRCS:%=dlldata.c) \
+CLEAN_TARGETS = $(IDL_GEN_C_SRCS) $(IDL_GEN_HEADERS) \
+                $(IDL_TLB_SRCS:.idl=.tlb) $(IDL_P_SRCS:.idl=_p.c dlldata.c) \
                 $(BISON_SRCS:.y=.tab.c) $(BISON_SRCS:.y=.tab.h) $(LEX_SRCS:.l=.yy.c) \
-                $(PO_SRCS:%=rsrc.pot) $(MC_SRCS:%=msg.pot) $(XTEMPLATE_SRCS:.x=.h)
+                $(PO_SRCS:.rc=.res rsrc.pot) $(MC_SRCS:.mc=.res msg.pot) $(XTEMPLATE_SRCS:.x=.h)
 
 OBJS = $(C_SRCS:.c=.o) $(BISON_SRCS:.y=.tab.o) $(LEX_SRCS:.l=.yy.o) $(IDL_GEN_C_SRCS:.c=.o) $(OBJC_SRCS:.m=.o) \
        $(IDL_R_SRCS:.idl=_r.res) $(IDL_TLB_RES) $(RC_SRCS:.rc=.res) $(MC_SRCS:.mc=.res) $(EXTRA_OBJS)
@@ -162,8 +163,8 @@ install-man-pages:: $(MANPAGE) $(DESTDIR)$(mandir)/man$(prog_manext)
 uninstall-man-pages::
 	$(RM) $(DESTDIR)$(mandir)/man$(prog_manext)/$(MANPAGE:.man=).$(prog_manext)
 
-install:: @WOW64_DISABLE@ $(MANPAGE:%=install-man-pages)
-uninstall:: @WOW64_DISABLE@ $(MANPAGE:%=uninstall-man-pages)
+install:: @WOW64_DISABLE@ $(MANPAGE:.man=.man.in install-man-pages)
+uninstall:: @WOW64_DISABLE@ $(MANPAGE:.man=.man.in uninstall-man-pages)
 
 # Rules for cleaning
 
diff --git a/tools/Makefile.in b/tools/Makefile.in
index f26bd72..d9aad04 100644
--- a/tools/Makefile.in
+++ b/tools/Makefile.in
@@ -41,7 +41,7 @@ all: makedep$(EXEEXT) $(PROGRAMS)
 
 @MAKE_RULES@
 
-makedep$(EXEEXT) $(EXEEXT:%=makedep): makedep.o
+makedep $(EXEEXT:%=makedep%): makedep.o
 	$(CC) $(CFLAGS) -o $@ makedep.o $(LDFLAGS)
 
 make_ctests$(EXEEXT): make_ctests.o




More information about the wine-cvs mailing list