Sweden-Number/programs/Makefile.in

36 lines
1002 B
Makefile

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