wine/programs/Makefile.in

52 lines
1.3 KiB
Makefile

TOPSRCDIR = @top_srcdir@
TOPOBJDIR = ..
SRCDIR = @srcdir@
VPATH = @srcdir@
SUBDIRS = @ALL_PROGRAM_DIRS@
INSTALLSUBDIRS = @ALL_PROGRAM_INSTALL_DIRS@
INSTALLPROGS = @ALL_PROGRAM_BIN_INSTALL_DIRS@
BIN_WRAPPERS = @ALL_PROGRAM_BIN_WRAPPERS@
INSTALLDIRS = $(DESTDIR)$(bindir)
PROGRAMS = wineapploader
@MAKE_RULES@
all: $(PROGRAMS) $(SUBDIRS) $(BIN_WRAPPERS)
wineapploader: wineapploader.in
sed -e 's,@bindir\@,$(bindir),g' $(SRCDIR)/wineapploader.in >$@ || ($(RM) $@ && false)
$(BIN_WRAPPERS): $(WINEWRAPPER)
$(RM) $@ && $(LN) $(WINEWRAPPER) $@
# Rules for installation
.PHONY: install-apploader install-progs install-progs.so $(INSTALLPROGS:%=%/__installprog__)
install-apploader: wineapploader $(INSTALLDIRS) dummy
$(INSTALL_SCRIPT) wineapploader $(DESTDIR)$(bindir)/wineapploader
$(INSTALLPROGS:%=%/__installprog__): install-apploader
$(RM) $(DESTDIR)$(bindir)/`dirname $@` && $(LN) $(DESTDIR)$(bindir)/wineapploader $(DESTDIR)$(bindir)/`dirname $@`
install-progs.so: $(INSTALLPROGS:%=%/__installprog__)
$(RM) $(DESTDIR)$(bindir)/wineapploader
install-progs: # nothing to do here
install install-lib:: install-progs$(DLLEXT) $(INSTALLDIRS)
uninstall::
-cd $(DESTDIR)$(bindir) && $(RM) wineapploader $(INSTALLPROGS)
-rmdir $(DESTDIR)$(dlldir)
clean::
$(RM) $(BIN_WRAPPERS)
# Rules for testing
check test:: $(SUBDIRS:%=%/__test__)