makefiles: Use make dependencies to create installation directories.
[wine] / tools / winebuild / Makefile.in
1 TOPSRCDIR = @top_srcdir@
2 TOPOBJDIR = ../..
3 SRCDIR    = @srcdir@
4 VPATH     = @srcdir@
5 EXEEXT    = @EXEEXT@
6
7 PROGRAMS = winebuild$(EXEEXT)
8 MANPAGES = winebuild.man
9 MODULE   = none
10
11 C_SRCS = \
12         import.c \
13         main.c \
14         parser.c \
15         relay.c \
16         res16.c \
17         res32.c \
18         spec16.c \
19         spec32.c \
20         utils.c
21
22 INSTALLDIRS = $(DESTDIR)$(bindir) $(DESTDIR)$(mandir)/man$(prog_manext)
23
24 all: $(PROGRAMS) $(MANPAGES)
25
26 @MAKE_RULES@
27
28 winebuild$(EXEEXT): $(OBJS)
29         $(CC) $(CFLAGS) -o $@ $(OBJS) $(LIBPORT) $(LDFLAGS)
30
31 install:: $(PROGRAMS) $(MANPAGES) $(INSTALLDIRS)
32         $(INSTALL_PROGRAM) winebuild$(EXEEXT) $(DESTDIR)$(bindir)/winebuild$(EXEEXT)
33         $(INSTALL_DATA) winebuild.man $(DESTDIR)$(mandir)/man$(prog_manext)/winebuild.$(prog_manext)
34
35 uninstall::
36         $(RM) $(DESTDIR)$(bindir)/winebuild$(EXEEXT) $(DESTDIR)$(mandir)/man$(prog_manext)/winebuild.$(prog_manext)
37
38 ### Dependencies: