Commit 664e4106 authored by Alexandre Julliard's avatar Alexandre Julliard

Added global rules for man pages.

parent b87bce1b
...@@ -116,7 +116,7 @@ LINTS = $(C_SRCS:.c=.ln) ...@@ -116,7 +116,7 @@ LINTS = $(C_SRCS:.c=.ln)
# Implicit rules # Implicit rules
.SUFFIXES: .mc .rc .mc.rc .res .res.o .spec .spec.o .idl .tlb .h .ok .sfd .ttf .SUFFIXES: .mc .rc .mc.rc .res .res.o .spec .spec.o .idl .tlb .h .ok .sfd .ttf .man.in .man
.c.o: .c.o:
$(CC) -c $(ALLCFLAGS) -o $@ $< $(CC) -c $(ALLCFLAGS) -o $@ $<
...@@ -151,6 +151,9 @@ LINTS = $(C_SRCS:.c=.ln) ...@@ -151,6 +151,9 @@ LINTS = $(C_SRCS:.c=.ln)
.sfd.ttf: .sfd.ttf:
$(FONTFORGE) -script $(TOPSRCDIR)/fonts/genttf.ff $< $@ $(FONTFORGE) -script $(TOPSRCDIR)/fonts/genttf.ff $< $@
.man.in.man:
sed -e 's,@bindir\@,$(bindir),g' -e 's,@dlldir\@,$(dlldir),g' -e 's,@PACKAGE_STRING\@,@PACKAGE_STRING@,g' $< >$@ || ($(RM) $@ && false)
# 'all' target first in case the enclosing Makefile didn't define any target # 'all' target first in case the enclosing Makefile didn't define any target
all: Makefile all: Makefile
...@@ -217,7 +220,7 @@ $(EXTRASUBDIRS:%=%/__clean__): dummy ...@@ -217,7 +220,7 @@ $(EXTRASUBDIRS:%=%/__clean__): dummy
testclean:: $(SUBDIRS:%=%/__testclean__) testclean:: $(SUBDIRS:%=%/__testclean__)
clean:: $(SUBDIRS:%=%/__clean__) $(EXTRASUBDIRS:%=%/__clean__) clean:: $(SUBDIRS:%=%/__clean__) $(EXTRASUBDIRS:%=%/__clean__)
$(RM) $(CLEAN_FILES) $(RC_SRCS:.rc=.res) $(RC_SRCS16:.rc=.res) $(MC_SRCS:.mc=.mc.rc) $(IDL_SRCS:.idl=.h) $(PROGRAMS) $(RC_BINARIES) $(RC_TLB) $(RM) $(CLEAN_FILES) $(RC_SRCS:.rc=.res) $(RC_SRCS16:.rc=.res) $(MC_SRCS:.mc=.mc.rc) $(IDL_SRCS:.idl=.h) $(PROGRAMS) $(RC_BINARIES) $(RC_TLB) $(MANPAGES)
.PHONY: clean testclean $(SUBDIRS:%=%/__clean__) $(SUBDIRS:%=%/__testclean__) $(EXTRASUBDIRS:%=%/__clean__) .PHONY: clean testclean $(SUBDIRS:%=%/__clean__) $(SUBDIRS:%=%/__testclean__) $(EXTRASUBDIRS:%=%/__clean__)
......
...@@ -17,9 +17,9 @@ PTHREAD_OBJS = pthread.o main.o ...@@ -17,9 +17,9 @@ PTHREAD_OBJS = pthread.o main.o
WINE_BINARIES = @WINE_BINARIES@ WINE_BINARIES = @WINE_BINARIES@
MAIN_BINARY = @MAIN_BINARY@ MAIN_BINARY = @MAIN_BINARY@
MAN_TARGETS = wine.man MANPAGES = wine.man
all: $(WINE_BINARIES) $(MODULE) $(MAN_TARGETS) all: $(WINE_BINARIES) $(MODULE) $(MANPAGES)
@MAKE_RULES@ @MAKE_RULES@
...@@ -41,10 +41,7 @@ wine-pthread: $(PTHREAD_OBJS) Makefile.in ...@@ -41,10 +41,7 @@ wine-pthread: $(PTHREAD_OBJS) Makefile.in
$(MODULE): $(MAIN_BINARY) $(MODULE): $(MAIN_BINARY)
$(RM) $(MODULE) && $(LN_S) $(MAIN_BINARY) $(MODULE) $(RM) $(MODULE) && $(LN_S) $(MAIN_BINARY) $(MODULE)
wine.man: wine.man.in install:: $(WINE_BINARIES) $(MANPAGES)
sed -e 's,@bindir\@,$(bindir),g' -e 's,@dlldir\@,$(dlldir),g' -e 's,@PACKAGE_STRING\@,@PACKAGE_STRING@,g' $(SRCDIR)/wine.man.in >$@ || ($(RM) $@ && false)
install:: $(WINE_BINARIES) $(MAN_TARGETS)
$(MKINSTALLDIRS) $(bindir) $(mandir)/man$(prog_manext) $(MKINSTALLDIRS) $(bindir) $(mandir)/man$(prog_manext)
for f in $(WINE_BINARIES); do \ for f in $(WINE_BINARIES); do \
if [ "$(MAIN_BINARY)" = "$$f" ]; \ if [ "$(MAIN_BINARY)" = "$$f" ]; \
...@@ -59,6 +56,6 @@ uninstall:: ...@@ -59,6 +56,6 @@ uninstall::
$(RM) $(mandir)/man$(prog_manext)/wine.$(prog_manext) $(RM) $(mandir)/man$(prog_manext)/wine.$(prog_manext)
clean:: clean::
$(RM) $(WINE_BINARIES) $(MODULE) $(MAN_TARGETS) $(RM) $(WINE_BINARIES) $(MODULE)
### Dependencies: ### Dependencies:
...@@ -58,9 +58,6 @@ all: $(PROGRAMS) $(MANPAGES) ...@@ -58,9 +58,6 @@ all: $(PROGRAMS) $(MANPAGES)
wineserver: $(OBJS) wineserver: $(OBJS)
$(CC) -o $(PROGRAMS) $(OBJS) $(LIBWINE) $(LIBUNICODE) $(LIBPORT) $(LDFLAGS) $(LIBS) $(CC) -o $(PROGRAMS) $(OBJS) $(LIBWINE) $(LIBUNICODE) $(LIBPORT) $(LDFLAGS) $(LIBS)
wineserver.man: wineserver.man.in
sed -e 's,@bindir\@,$(bindir),g' -e 's,@PACKAGE_STRING\@,@PACKAGE_STRING@,g' $(SRCDIR)/wineserver.man.in >$@ || ($(RM) $@ && false)
install:: $(PROGRAMS) $(MANPAGES) install:: $(PROGRAMS) $(MANPAGES)
$(MKINSTALLDIRS) $(bindir) $(mandir)/man$(prog_manext) $(MKINSTALLDIRS) $(bindir) $(mandir)/man$(prog_manext)
$(INSTALL_PROGRAM) wineserver $(bindir)/wineserver $(INSTALL_PROGRAM) wineserver $(bindir)/wineserver
...@@ -69,7 +66,4 @@ install:: $(PROGRAMS) $(MANPAGES) ...@@ -69,7 +66,4 @@ install:: $(PROGRAMS) $(MANPAGES)
uninstall:: uninstall::
$(RM) $(bindir)/wineserver $(mandir)/man$(prog_manext)/wineserver.$(prog_manext) $(RM) $(bindir)/wineserver $(mandir)/man$(prog_manext)/wineserver.$(prog_manext)
clean::
$(RM) $(MANPAGES)
### Dependencies: ### Dependencies:
...@@ -5,6 +5,7 @@ VPATH = @srcdir@ ...@@ -5,6 +5,7 @@ VPATH = @srcdir@
EXEEXT = @EXEEXT@ EXEEXT = @EXEEXT@
PROGRAMS = winebuild$(EXEEXT) PROGRAMS = winebuild$(EXEEXT)
MANPAGES = winebuild.man
MODULE = none MODULE = none
C_SRCS = \ C_SRCS = \
...@@ -18,17 +19,14 @@ C_SRCS = \ ...@@ -18,17 +19,14 @@ C_SRCS = \
spec32.c \ spec32.c \
utils.c utils.c
all: $(PROGRAMS) winebuild.man all: $(PROGRAMS) $(MANPAGES)
@MAKE_RULES@ @MAKE_RULES@
winebuild$(EXEEXT): $(OBJS) winebuild$(EXEEXT): $(OBJS)
$(CC) $(CFLAGS) -o $@ $(OBJS) $(LIBPORT) $(LDFLAGS) $(CC) $(CFLAGS) -o $@ $(OBJS) $(LIBPORT) $(LDFLAGS)
winebuild.man: winebuild.man.in install:: $(PROGRAMS) $(MANPAGES)
sed -e 's,@PACKAGE_STRING\@,@PACKAGE_STRING@,g' $(SRCDIR)/winebuild.man.in >$@ || ($(RM) $@ && false)
install:: $(PROGRAMS) winebuild.man
$(MKINSTALLDIRS) $(bindir) $(mandir)/man$(prog_manext) $(MKINSTALLDIRS) $(bindir) $(mandir)/man$(prog_manext)
$(INSTALL_PROGRAM) winebuild$(EXEEXT) $(bindir)/winebuild$(EXEEXT) $(INSTALL_PROGRAM) winebuild$(EXEEXT) $(bindir)/winebuild$(EXEEXT)
$(INSTALL_DATA) winebuild.man $(mandir)/man$(prog_manext)/winebuild.$(prog_manext) $(INSTALL_DATA) winebuild.man $(mandir)/man$(prog_manext)/winebuild.$(prog_manext)
...@@ -36,7 +34,4 @@ install:: $(PROGRAMS) winebuild.man ...@@ -36,7 +34,4 @@ install:: $(PROGRAMS) winebuild.man
uninstall:: uninstall::
$(RM) $(bindir)/winebuild$(EXEEXT) $(mandir)/man$(prog_manext)/winebuild.$(prog_manext) $(RM) $(bindir)/winebuild$(EXEEXT) $(mandir)/man$(prog_manext)/winebuild.$(prog_manext)
clean::
$(RM) winebuild.man
### Dependencies: ### Dependencies:
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment