1 TOPSRCDIR
= @top_srcdir@
32 # Sub-directories to run make install into
53 # Programs to install in bin directory
54 # We don't install everything to avoid polluting /usr/bin too much
69 # Symlinks to apps that we want to run from inside the source tree
77 all: wineapploader winelauncher
$(SUBDIRS
) $(SYMLINKS
:%=%$(DLLEXT
))
79 wineapploader
: wineapploader.in
80 sed
-e
's,@bindir\@,$(bindir),g' $(SRCDIR
)/wineapploader.in
>$@ ||
$(RM
) $@
82 winelauncher
: winelauncher.in
83 sed
-e
's,@bindir\@,$(bindir),g' -e
's,@libdir\@,$(libdir),g' -e
's,@dlldir\@,$(dlldir),g' $(SRCDIR
)/winelauncher.in
>$@ ||
$(RM
) $@
85 # Rules for installation
87 .PHONY
: install-apploader install-progs install-progs.so
$(INSTALLPROGS
:%=%/__installprog__
)
89 install-apploader
: wineapploader dummy
90 $(MKINSTALLDIRS
) $(bindir)
91 $(INSTALL_SCRIPT
) wineapploader
$(bindir)/wineapploader
93 $(INSTALLPROGS
:%=%/__installprog__
): install-apploader
94 $(RM
) $(bindir)/`dirname $@` && $(LN
) $(bindir)/wineapploader
$(bindir)/`dirname $@`
96 install-progs.so
: $(INSTALLPROGS
:%=%/__installprog__
)
97 $(RM
) $(bindir)/wineapploader
99 install-progs
: # nothing to do here
101 install:: winelauncher install-progs
$(DLLEXT
)
102 $(MKINSTALLDIRS
) $(bindir)
103 $(INSTALL_SCRIPT
) winelauncher
$(bindir)/winelauncher
106 $(RM
) $(bindir)/wineapploader
$(bindir)/winelauncher
$(INSTALLPROGS
:%=$(bindir)/%)
110 $(RM
) wineapploader winelauncher
$(SYMLINKS
)
114 checklink
:: $(SUBDIRS
:%=%/__checklink__
)
116 check test:: $(SUBDIRS
:%=%/__test__
)
120 wineconsole.exe
$(DLLEXT
): wineconsole
/wineconsole.exe
$(DLLEXT
)
121 $(RM
) $@
&& $(LN_S
) wineconsole
/wineconsole.exe
$(DLLEXT
) $@
123 winedbg.exe
$(DLLEXT
): winedbg
/winedbg.exe
$(DLLEXT
)
124 $(RM
) $@
&& $(LN_S
) winedbg
/winedbg.exe
$(DLLEXT
) $@
126 winhelp.exe
$(DLLEXT
): winhelp
/winhelp.exe
$(DLLEXT
)
127 $(RM
) $@
&& $(LN_S
) winhelp
/winhelp.exe
$(DLLEXT
) $@
129 wineconsole
/wineconsole.exe
$(DLLEXT
): wineconsole
130 winedbg
/winedbg.exe
$(DLLEXT
): winedbg
131 winhelp
/winhelp.exe
$(DLLEXT
): winhelp