1 DEFS = -DLEX_OUTPUT_ROOT="\"@LEX_OUTPUT_ROOT@\""
2 TOPSRCDIR = @top_srcdir@
27 INSTALLSUBDIRS = $(SUBDIRS)
29 EXTRASUBDIRS = winapi_check
31 UPDATE_DESKTOP_DATABASE = update-desktop-database
33 all: $(PROGRAMS) $(SUBDIRS)
38 $(CC) $(CFLAGS) -o makedep makedep.o
41 $(CC) $(CFLAGS) -o fnt2bdf fnt2bdf.o $(LIBPORT)
44 $(CC) $(CFLAGS) -o bin2res bin2res.o $(LIBPORT)
46 wineprefixcreate: wineprefixcreate.in
47 sed -e 's,@dlldir\@,$(dlldir),g' -e 's,@datadir\@,$(datadir),g' $(SRCDIR)/wineprefixcreate.in >$@ || ($(RM) $@ && false)
48 chmod +x wineprefixcreate
50 install:: wineprefixcreate
51 $(MKINSTALLDIRS) $(bindir) $(mandir)/man$(prog_manext) $(datadir)/wine $(datadir)/applications
52 $(INSTALL_SCRIPT) $(SRCDIR)/winemaker $(bindir)/winemaker
53 $(INSTALL_SCRIPT) wineprefixcreate $(bindir)/wineprefixcreate
54 $(INSTALL_DATA) $(SRCDIR)/winemaker.man $(mandir)/man$(prog_manext)/winemaker.$(prog_manext)
55 $(INSTALL_DATA) $(SRCDIR)/wine.inf $(datadir)/wine/wine.inf
56 $(INSTALL_DATA) $(SRCDIR)/wine.desktop $(datadir)/applications/wine.desktop
57 -$(UPDATE_DESKTOP_DATABASE)
60 $(RM) $(bindir)/winemaker $(bindir)/wineprefixcreate $(mandir)/man$(prog_manext)/winemaker.$(prog_manext) \
61 $(datadir)/wine/wine.inf $(datadir)/applications/wine.desktop
62 -$(UPDATE_DESKTOP_DATABASE)