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

the top-level Makefile.
This commit is contained in:
James Juran 1999-02-13 12:18:33 +00:00 committed by Alexandre Julliard
parent 251c9dfda2
commit c70dc833da
5 changed files with 44 additions and 19 deletions

View File

@ -80,8 +80,10 @@ PROGSUBDIRS = libtest programs
DOCSUBDIRS = documentation DOCSUBDIRS = documentation
# All sub-directories INCSUBDIRS = include
ALLSUBDIRS = \
# Sub-directories to run make into
BUILDSUBDIRS = \
$(LIBSUBDIRS) \ $(LIBSUBDIRS) \
$(X11SUBDIRS) \ $(X11SUBDIRS) \
$(EMUSUBDIRS) \ $(EMUSUBDIRS) \
@ -92,7 +94,7 @@ ALLSUBDIRS = \
DEPENDSUBDIRS = $(LIBSUBDIRS) $(X11SUBDIRS) $(EMUSUBDIRS) $(DOCSUBDIRS) DEPENDSUBDIRS = $(LIBSUBDIRS) $(X11SUBDIRS) $(EMUSUBDIRS) $(DOCSUBDIRS)
# Sub-directories to run make install into # Sub-directories to run make install into
INSTALLSUBDIRS = $(DOCSUBDIRS) INSTALLSUBDIRS = $(DOCSUBDIRS) $(INCSUBDIRS)
LIBOBJS = \ LIBOBJS = \
controls/controls.o \ controls/controls.o \
@ -186,28 +188,16 @@ install_emu: install_lib
uninstall_emu: uninstall_lib uninstall_emu: uninstall_lib
$(RM) $(bindir)/wine $(bindir)/dosmod $(RM) $(bindir)/wine $(bindir)/dosmod
install_lib: install_includes install_lib: dummy
[ -d $(libdir) ] || $(MKDIR) $(libdir) [ -d $(libdir) ] || $(MKDIR) $(libdir)
if [ $(LIB_TARGET) ]; then $(INSTALL_DATA) $(LIB_TARGET) $(libdir); fi if [ $(LIB_TARGET) ]; then $(INSTALL_DATA) $(LIB_TARGET) $(libdir); fi
$(INSTALL_DATA) wine.sym $(libdir)/wine.sym $(INSTALL_DATA) wine.sym $(libdir)/wine.sym
uninstall_lib: uninstall_includes uninstall_lib: dummy
cd $(libdir); $(RM) $(LIB_TARGET) cd $(libdir); $(RM) $(LIB_TARGET)
$(RM) $(libdir)/wine.sym $(RM) $(libdir)/wine.sym
install_includes: dummy $(BUILDSUBDIRS): 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
@cd $@; $(SUBMAKE) @cd $@; $(SUBMAKE)
install_programs: dummy install_programs: dummy
@ -237,7 +227,7 @@ htmlpages:
for i in $(LIBSUBDIRS); do (cd $$i && $(MAKE) html); done for i in $(LIBSUBDIRS); do (cd $$i && $(MAKE) html); done
clean:: 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 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 .#* $(RM) wine wine.sym libwine.a libwine.so.1.0 libwine.so TAGS .#*

2
configure vendored
View File

@ -4495,6 +4495,7 @@ graphics/ttydrv/Makefile
graphics/win16drv/Makefile graphics/win16drv/Makefile
graphics/x11drv/Makefile graphics/x11drv/Makefile
if1632/Makefile if1632/Makefile
include/Makefile
ipc/Makefile ipc/Makefile
library/Makefile library/Makefile
libtest/Makefile libtest/Makefile
@ -4654,6 +4655,7 @@ graphics/ttydrv/Makefile
graphics/win16drv/Makefile graphics/win16drv/Makefile
graphics/x11drv/Makefile graphics/x11drv/Makefile
if1632/Makefile if1632/Makefile
include/Makefile
ipc/Makefile ipc/Makefile
library/Makefile library/Makefile
libtest/Makefile libtest/Makefile

View File

@ -622,6 +622,7 @@ graphics/ttydrv/Makefile
graphics/win16drv/Makefile graphics/win16drv/Makefile
graphics/x11drv/Makefile graphics/x11drv/Makefile
if1632/Makefile if1632/Makefile
include/Makefile
ipc/Makefile ipc/Makefile
library/Makefile library/Makefile
libtest/Makefile libtest/Makefile

View File

@ -1 +1,2 @@
Makefile
config.h config.h

31
include/Makefile.in Normal file
View File

@ -0,0 +1,31 @@
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: