msi: Fix the service actions to revert components to the installed state during rollback.
[wine] / tools / Makefile.in
1 DEFS      = -D__WINESRC__ $(EXTRADEFS)
2 EXTRAINCL = @FREETYPEINCL@
3 FREETYPELIBS = @FREETYPELIBS@
4
5 PROGRAMS = \
6         fnt2bdf$(EXEEXT) \
7         fnt2fon$(EXEEXT) \
8         make_ctests$(EXEEXT) \
9         make_xftmpl$(EXEEXT) \
10         relpath$(EXEEXT) \
11         sfnt2fnt$(EXEEXT) \
12         wine.inf \
13         wineapploader
14
15 MANPAGE = winemaker.man
16
17 EXTRA_MANPAGES = \
18         winemaker.de.man \
19         winemaker.fr.man
20
21 C_SRCS = \
22         fnt2bdf.c \
23         fnt2fon.c \
24         make_ctests.c \
25         make_xftmpl.c \
26         makedep.c \
27         relpath.c \
28         sfnt2fnt.c
29
30 EXTRASUBDIRS = winapi
31
32 INSTALLDIRS = \
33         $(DESTDIR)$(bindir) \
34         $(DESTDIR)$(datadir)/applications \
35         $(DESTDIR)$(datadir)/wine \
36         $(DESTDIR)$(mandir)/man$(prog_manext) \
37         $(DESTDIR)$(mandir)/de.UTF-8/man$(prog_manext) \
38         $(DESTDIR)$(mandir)/fr.UTF-8/man$(prog_manext)
39
40 UPDATE_DESKTOP_DATABASE = update-desktop-database
41
42 all: makedep$(EXEEXT) $(PROGRAMS)
43
44 @MAKE_RULES@
45
46 makedep$(EXEEXT) $(EXEEXT:%=makedep): makedep.o
47         $(CC) $(CFLAGS) -o $@ makedep.o $(LDFLAGS)
48
49 make_ctests$(EXEEXT): make_ctests.o
50         $(CC) $(CFLAGS) -o $@ make_ctests.o $(LDFLAGS)
51
52 make_xftmpl$(EXEEXT): make_xftmpl.o
53         $(CC) $(CFLAGS) -o $@ make_xftmpl.o $(LIBPORT) $(LDFLAGS)
54
55 fnt2bdf$(EXEEXT): fnt2bdf.o
56         $(CC) $(CFLAGS) -o $@ fnt2bdf.o $(LIBPORT) $(LDFLAGS)
57
58 fnt2fon$(EXEEXT): fnt2fon.o
59         $(CC) $(CFLAGS) -o $@ fnt2fon.o $(LIBPORT) $(LDFLAGS)
60
61 relpath$(EXEEXT): relpath.o
62         $(CC) $(CFLAGS) -o $@ relpath.o $(LIBPORT) $(LDFLAGS)
63
64 sfnt2fnt$(EXEEXT): sfnt2fnt.o relpath$(EXEEXT)
65         $(CC) $(CFLAGS) -o $@ sfnt2fnt.o $(LIBWINE) $(LIBPORT) $(LDFLAGS) $(FREETYPELIBS) $(LDRPATH_LOCAL)
66
67 wine.inf: wine.inf.in
68         LC_ALL=C sed -e 's,@PACKAGE_STRING\@,@PACKAGE_STRING@,g' $(srcdir)/wine.inf.in >$@ || ($(RM) $@ && false)
69
70 wineapploader: wineapploader.in
71         sed -e 's,@bindir\@,$(bindir),g' $(srcdir)/wineapploader.in >$@ || ($(RM) $@ && false)
72
73 install install-lib:: wine.inf $(INSTALLDIRS)
74         $(INSTALL_DATA) wine.inf $(DESTDIR)$(datadir)/wine/wine.inf
75         $(INSTALL_DATA) $(srcdir)/l_intl.nls $(DESTDIR)$(datadir)/wine/l_intl.nls
76         $(INSTALL_DATA) $(srcdir)/wine.desktop $(DESTDIR)$(datadir)/applications/wine.desktop
77         -$(UPDATE_DESKTOP_DATABASE)
78
79 install install-dev:: $(DESTDIR)$(bindir) install-man-pages
80         $(INSTALL_SCRIPT) $(srcdir)/winemaker $(DESTDIR)$(bindir)/winemaker
81
82 install-man-pages:: $(EXTRA_MANPAGES) $(INSTALLDIRS)
83         $(INSTALL_DATA) winemaker.de.man $(DESTDIR)$(mandir)/de.UTF-8/man$(prog_manext)/winemaker.$(prog_manext)
84         $(INSTALL_DATA) winemaker.fr.man $(DESTDIR)$(mandir)/fr.UTF-8/man$(prog_manext)/winemaker.$(prog_manext)
85
86 uninstall::
87         $(RM) $(DESTDIR)$(datadir)/wine/wine.inf \
88                 $(DESTDIR)$(datadir)/wine/l_intl.nls \
89                 $(DESTDIR)$(datadir)/applications/wine.desktop \
90                 $(DESTDIR)$(bindir)/winemaker \
91                 $(DESTDIR)$(mandir)/de.UTF-8/man$(prog_manext)/winemaker.$(prog_manext) \
92                 $(DESTDIR)$(mandir)/fr.UTF-8/man$(prog_manext)/winemaker.$(prog_manext)
93         -$(UPDATE_DESKTOP_DATABASE)
94
95 depend: makedep$(EXEEXT)