1 TOPSRCDIR = @top_srcdir@
6 SUBDIRS = @ALL_PROGRAM_DIRS@
7 INSTALLSUBDIRS = @ALL_PROGRAM_INSTALL_DIRS@
8 INSTALLPROGS = @ALL_PROGRAM_BIN_INSTALL_DIRS@
10 INSTALLDIRS = $(DESTDIR)$(bindir)
12 PROGRAMS = wineapploader
16 all: $(PROGRAMS) $(SUBDIRS)
18 wineapploader: wineapploader.in
19 sed -e 's,@bindir\@,$(bindir),g' $(SRCDIR)/wineapploader.in >$@ || ($(RM) $@ && false)
21 # Rules for installation
23 .PHONY: install-apploader install-progs install-progs.so $(INSTALLPROGS:%=%/__installprog__)
25 install-apploader: wineapploader $(INSTALLDIRS) dummy
26 $(INSTALL_SCRIPT) wineapploader $(DESTDIR)$(bindir)/wineapploader
28 $(INSTALLPROGS:%=%/__installprog__): install-apploader
29 $(RM) $(DESTDIR)$(bindir)/`dirname $@` && $(LN) $(DESTDIR)$(bindir)/wineapploader $(DESTDIR)$(bindir)/`dirname $@`
31 install-progs.so: $(INSTALLPROGS:%=%/__installprog__)
32 $(RM) $(DESTDIR)$(bindir)/wineapploader
34 install-progs: # nothing to do here
36 @WOW64_DISABLE@ install install-lib:: install-progs$(DLLEXT) $(INSTALLDIRS)
39 -cd $(DESTDIR)$(bindir) && $(RM) wineapploader $(INSTALLPROGS)
40 -rmdir $(DESTDIR)$(fakedlldir) $(DESTDIR)$(dlldir)
44 check test:: $(SUBDIRS:%=%/__test__)