Commit c70dc833 authored by James Juran's avatar James Juran Committed by Alexandre Julliard

Created include/Makefile.in to separate header file installation from

the top-level Makefile.
parent 251c9dfd
......@@ -80,8 +80,10 @@ PROGSUBDIRS = libtest programs
DOCSUBDIRS = documentation
# All sub-directories
ALLSUBDIRS = \
INCSUBDIRS = include
# Sub-directories to run make into
BUILDSUBDIRS = \
$(LIBSUBDIRS) \
$(X11SUBDIRS) \
$(EMUSUBDIRS) \
......@@ -92,7 +94,7 @@ ALLSUBDIRS = \
DEPENDSUBDIRS = $(LIBSUBDIRS) $(X11SUBDIRS) $(EMUSUBDIRS) $(DOCSUBDIRS)
# Sub-directories to run make install into
INSTALLSUBDIRS = $(DOCSUBDIRS)
INSTALLSUBDIRS = $(DOCSUBDIRS) $(INCSUBDIRS)
LIBOBJS = \
controls/controls.o \
......@@ -186,28 +188,16 @@ install_emu: install_lib
uninstall_emu: uninstall_lib
$(RM) $(bindir)/wine $(bindir)/dosmod
install_lib: install_includes
install_lib: dummy
[ -d $(libdir) ] || $(MKDIR) $(libdir)
if [ $(LIB_TARGET) ]; then $(INSTALL_DATA) $(LIB_TARGET) $(libdir); fi
$(INSTALL_DATA) wine.sym $(libdir)/wine.sym
uninstall_lib: uninstall_includes
uninstall_lib: dummy
cd $(libdir); $(RM) $(LIB_TARGET)
$(RM) $(libdir)/wine.sym
install_includes: dummy
# Testing LIB_TARGET prevents installing header files
# when --disable-lib is used.
if [ $(LIB_TARGET) ]; then [ -d $(includedir) ] || $(MKDIR) $(includedir); \
cd $(TOPSRCDIR)/include; $(INSTALL_DATA) windows.h wintypes.h $(includedir); fi
# Don't just do a rm -rf on $(includedir) -- don't want to wipe out
# anything extra the user may have put there.
uninstall_includes: dummy
$(RM) $(includedir)/windows.h $(includedir)/wintypes.h
-rmdir $(includedir)
$(ALLSUBDIRS): dummy
$(BUILDSUBDIRS): dummy
@cd $@; $(SUBMAKE)
install_programs: dummy
......@@ -237,7 +227,7 @@ htmlpages:
for i in $(LIBSUBDIRS); do (cd $$i && $(MAKE) html); done
clean::
for i in $(ALLSUBDIRS); do (cd $$i; $(MAKE) clean) || exit 1; done
for i in $(BUILDSUBDIRS); do (cd $$i; $(MAKE) clean) || exit 1; done
for i in include; do (cd $$i; $(RM) *.o \#*\# .#* *~ *% *.bak *.orig *.rej *.flc); done
$(RM) wine wine.sym libwine.a libwine.so.1.0 libwine.so TAGS .#*
......
......@@ -4495,6 +4495,7 @@ graphics/ttydrv/Makefile
graphics/win16drv/Makefile
graphics/x11drv/Makefile
if1632/Makefile
include/Makefile
ipc/Makefile
library/Makefile
libtest/Makefile
......@@ -4654,6 +4655,7 @@ graphics/ttydrv/Makefile
graphics/win16drv/Makefile
graphics/x11drv/Makefile
if1632/Makefile
include/Makefile
ipc/Makefile
library/Makefile
libtest/Makefile
......
......@@ -622,6 +622,7 @@ graphics/ttydrv/Makefile
graphics/win16drv/Makefile
graphics/x11drv/Makefile
if1632/Makefile
include/Makefile
ipc/Makefile
library/Makefile
libtest/Makefile
......
TOPSRCDIR = @top_srcdir@
TOPOBJDIR = ..
SRCDIR = @srcdir@
VPATH = @srcdir@
MODULE = none
LIB_TARGET = @LIB_TARGET@
INSTALLED_INCLUDES = \
windows.h \
wingdi.h \
wintypes.h \
winuser.h
@MAKE_RULES@
# Testing LIB_TARGET prevents installing header files
# when --disable-lib is used
install:: dummy
if [ $(LIB_TARGET) ]; then [ -d $(includedir) ] || $(MKDIR) $(includedir); \
$(INSTALL_DATA) $(INSTALLED_INCLUDES) $(includedir); fi
# Don't just do a rm -rf on $(includedir) -- don't want to wipe out
# anything extra the user may have put there.
uninstall::
cd $(includedir); $(RM) $(INSTALLED_INCLUDES)
-rmdir $(includedir)
dummy:
### Dependencies:
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment