1 TOPSRCDIR
= @top_srcdir@
6 SUBDIRS
= @ALL_PROGRAM_DIRS@
7 INSTALLSUBDIRS
= @ALL_PROGRAM_INSTALL_DIRS@
8 INSTALLPROGS
= @ALL_PROGRAM_BIN_INSTALL_DIRS@
9 BIN_WRAPPERS
= @ALL_PROGRAM_BIN_WRAPPERS@
11 INSTALLDIRS
= $(DESTDIR
)$(bindir)
13 PROGRAMS
= wineapploader
17 all: $(PROGRAMS
) $(SUBDIRS
) $(BIN_WRAPPERS
)
19 wineapploader
: wineapploader.in
20 sed
-e
's,@bindir\@,$(bindir),g' $(SRCDIR
)/wineapploader.in
>$@ ||
($(RM
) $@
&& false
)
22 $(BIN_WRAPPERS
): $(WINEWRAPPER
)
23 $(RM
) $@
&& $(LN
) $(WINEWRAPPER
) $@
25 # Rules for installation
27 .PHONY
: install-apploader install-progs install-progs.so
$(INSTALLPROGS
:%=%/__installprog__
)
29 install-apploader
: wineapploader
$(INSTALLDIRS
) dummy
30 $(INSTALL_SCRIPT
) wineapploader
$(DESTDIR
)$(bindir)/wineapploader
32 $(INSTALLPROGS
:%=%/__installprog__
): install-apploader
33 $(RM
) $(DESTDIR
)$(bindir)/`dirname $@` && $(LN
) $(DESTDIR
)$(bindir)/wineapploader
$(DESTDIR
)$(bindir)/`dirname $@`
35 install-progs.so
: $(INSTALLPROGS
:%=%/__installprog__
)
36 $(RM
) $(DESTDIR
)$(bindir)/wineapploader
38 install-progs
: # nothing to do here
40 install install-lib
:: install-progs
$(DLLEXT
) $(INSTALLDIRS
)
43 -cd
$(DESTDIR
)$(bindir) && $(RM
) wineapploader
$(INSTALLPROGS
)
44 -rmdir
$(DESTDIR
)$(dlldir
)
51 check test:: $(SUBDIRS
:%=%/__test__
)