1 TOPSRCDIR
= @top_srcdir@
33 # Sub-directories to run make install into
55 # Programs to install in bin directory
56 # We don't install everything to avoid polluting /usr/bin too much
71 # Symlinks to apps that we want to run from inside the source tree
81 all: wineapploader winelauncher
$(SUBDIRS
) $(SYMLINKS
:%=%$(DLLEXT
))
83 wineapploader
: wineapploader.in
84 sed
-e
's,@bindir\@,$(bindir),g' $(SRCDIR
)/wineapploader.in
>$@ ||
$(RM
) $@
86 winelauncher
: winelauncher.in
87 sed
-e
's,@bindir\@,$(bindir),g' -e
's,@libdir\@,$(libdir),g' -e
's,@dlldir\@,$(dlldir),g' $(SRCDIR
)/winelauncher.in
>$@ ||
$(RM
) $@
89 # Rules for installation
91 .PHONY
: install-apploader install-progs install-progs.so
$(INSTALLPROGS
:%=%/__installprog__
)
93 install-apploader
: wineapploader dummy
94 $(MKINSTALLDIRS
) $(bindir)
95 $(INSTALL_SCRIPT
) wineapploader
$(bindir)/wineapploader
97 $(INSTALLPROGS
:%=%/__installprog__
): install-apploader
98 $(RM
) $(bindir)/`dirname $@` && $(LN
) $(bindir)/wineapploader
$(bindir)/`dirname $@`
100 install-progs.so
: $(INSTALLPROGS
:%=%/__installprog__
)
101 $(RM
) $(bindir)/wineapploader
103 install-progs
: # nothing to do here
105 install:: winelauncher install-progs
$(DLLEXT
)
106 $(MKINSTALLDIRS
) $(bindir)
107 $(INSTALL_SCRIPT
) winelauncher
$(bindir)/winelauncher
110 $(RM
) $(bindir)/wineapploader
$(bindir)/winelauncher
$(INSTALLPROGS
:%=$(bindir)/%)
114 $(RM
) wineapploader winelauncher
$(SYMLINKS
)
118 check test:: $(SUBDIRS
:%=%/__test__
)
122 rpcss.exe
$(DLLEXT
): rpcss
/rpcss.exe
$(DLLEXT
)
123 $(RM
) $@
&& $(LN_S
) rpcss
/rpcss.exe
$(DLLEXT
) $@
125 wcmd.exe
$(DLLEXT
): wcmd
/wcmd.exe
$(DLLEXT
)
126 $(RM
) $@
&& $(LN_S
) wcmd
/wcmd.exe
$(DLLEXT
) $@
128 wineconsole.exe
$(DLLEXT
): wineconsole
/wineconsole.exe
$(DLLEXT
)
129 $(RM
) $@
&& $(LN_S
) wineconsole
/wineconsole.exe
$(DLLEXT
) $@
131 winedbg.exe
$(DLLEXT
): winedbg
/winedbg.exe
$(DLLEXT
)
132 $(RM
) $@
&& $(LN_S
) winedbg
/winedbg.exe
$(DLLEXT
) $@
134 winhelp.exe
$(DLLEXT
): winhelp
/winhelp.exe
$(DLLEXT
)
135 $(RM
) $@
&& $(LN_S
) winhelp
/winhelp.exe
$(DLLEXT
) $@
137 wcmd
/wcmd.exe
$(DLLEXT
): wcmd
138 wineconsole
/wineconsole.exe
$(DLLEXT
): wineconsole
139 winedbg
/winedbg.exe
$(DLLEXT
): winedbg
140 winhelp
/winhelp.exe
$(DLLEXT
): winhelp