user: Moved Get/SetClassLong16 to wnd16.c.
[wine] / programs / Makefile.in
index 4e15ece..4376fe6 100644 (file)
+# Automatically generated by make_progs; DO NOT EDIT!!
+
+TOPSRCDIR = @top_srcdir@
+TOPOBJDIR = ..
+SRCDIR    = @srcdir@
+VPATH     = @srcdir@
+
 SUBDIRS = \
-       avitools \
        clock \
+       cmdlgtst \
        control \
+       eject \
+       expand \
+       explorer \
+       hh \
+       icinfo \
+       iexplore \
+       msiexec \
        notepad \
        progman \
-       regtest \
+       regedit \
+       regsvr32 \
+       rpcss \
+       rundll32 \
+       start \
+       taskmgr \
+       uninstaller \
        view \
+       wcmd \
+       wineboot \
+       winebrowser \
+       winecfg \
+       wineconsole \
+       winedbg \
+       winefile \
+       winemenubuilder \
+       winemine \
+       winepath \
+       winetest \
+       winevdm \
+       winhelp \
+       winver \
+       wordpad
+
+# Sub-directories to run make install into
+INSTALLSUBDIRS = \
+       clock \
+       control \
+       eject \
+       expand \
+       explorer \
+       hh \
+       icinfo \
+       iexplore \
+       msiexec \
+       notepad \
+       progman \
+       regedit \
+       regsvr32 \
+       rpcss \
+       rundll32 \
+       start \
+       taskmgr \
+       uninstaller \
+       wcmd \
+       wineboot \
+       winebrowser \
+       winecfg \
+       wineconsole \
+       winedbg \
+       winefile \
+       winemenubuilder \
+       winemine \
+       winepath \
+       winevdm \
        winhelp \
-       winver
+       winver \
+       wordpad
+
+# Programs to install in bin directory
+INSTALLPROGS = \
+       msiexec \
+       notepad \
+       progman \
+       regedit \
+       regsvr32 \
+       uninstaller \
+       wcmd \
+       wineboot \
+       winebrowser \
+       winecfg \
+       wineconsole \
+       winedbg \
+       winefile \
+       winemine \
+       winepath \
+       winhelp
+
+@MAKE_RULES@
+
+all: wineapploader winelauncher $(SUBDIRS)
+
+wineapploader: wineapploader.in
+       sed -e 's,@bindir\@,$(bindir),g' $(SRCDIR)/wineapploader.in >$@ || ($(RM) $@ && false)
+
+winelauncher: winelauncher.in
+       sed -e 's,@bindir\@,$(bindir),g' -e 's,@libdir\@,$(libdir),g' -e 's,@dlldir\@,$(dlldir),g' $(SRCDIR)/winelauncher.in >$@ || ($(RM) $@ && false)
+
+# Rules for installation
+
+.PHONY: install-apploader install-progs install-progs.so $(INSTALLPROGS:%=%/__installprog__)
+
+install-apploader: wineapploader dummy
+       $(MKINSTALLDIRS) $(DESTDIR)$(bindir)
+       $(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
 
-all: $(SUBDIRS)
+install-progs: # nothing to do here
 
-$(SUBDIRS): dummy
-       @cd $@; $(MAKE)
+install:: winelauncher install-progs$(DLLEXT)
+       $(MKINSTALLDIRS) $(DESTDIR)$(bindir)
+       $(INSTALL_SCRIPT) winelauncher $(DESTDIR)$(bindir)/winelauncher
 
-depend:
-       for i in $(SUBDIRS); do (cd $$i; $(MAKE) depend) || exit 1; done
+uninstall::
+       -cd $(DESTDIR)$(bindir) && $(RM) wineapploader winelauncher $(INSTALLPROGS)
+       -rmdir $(DESTDIR)$(dlldir)
 
-install:
-       for i in $(SUBDIRS); do (cd $$i; $(MAKE) install) || exit 1; done
+clean::
+       $(RM) wineapploader winelauncher
 
-uninstall:
-       for i in $(SUBDIRS); do (cd $$i; $(MAKE) uninstall) || exit 1; done
+# Rules for testing
 
-clean:
-       for i in $(SUBDIRS); do (cd $$i; $(MAKE) clean) || exit 1; done
+check test:: $(SUBDIRS:%=%/__test__)
 
-dummy:
+### Dependencies: