2007-04-05 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>

* Makefile.in: Added mansection and mansuffix variables.  Changed mandir
  to support Cygwin man page location.
This commit is contained in:
Chris Sutcliffe 2007-04-05 20:44:29 +00:00
parent 07278e6cc7
commit f12b93442f
2 changed files with 24 additions and 11 deletions

View File

@ -1,3 +1,8 @@
2007-04-05 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
* Makefile.in: Added mansection and mansuffix variables. Changed mandir
to support Cygwin man page location.
2007-03-25 Chris Sutcliffe <ir0nh34d@users.sourceforge.net> 2007-03-25 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
* Include/_mingw.h: Increment version to 3.12. * Include/_mingw.h: Increment version to 3.12.

View File

@ -19,7 +19,7 @@
PACKAGE = mingw-runtime PACKAGE = mingw-runtime
VERSION = @PACKAGE_VERSION@ VERSION = @PACKAGE_VERSION@
CYGRELEASE = 1 CYGRELEASE = 2
VPATH = @srcdir@ VPATH = @srcdir@
srcdir = @srcdir@ srcdir = @srcdir@
@ -36,7 +36,15 @@ program_transform_name = @program_transform_name@
exec_prefix = @exec_prefix@ exec_prefix = @exec_prefix@
bindir = @bindir@ bindir = @bindir@
libdir = @libdir@ libdir = @libdir@
ifneq (,$(findstring cygwin,$(target_alias)))
mandir = $(prefix)/share/man
mansection = mingw
mansuffix = mingw
else
mandir = @mandir@ mandir = @mandir@
mansection = man3
mansuffix = 3
endif
manpage_transform = @mingw_manpage_transform@ manpage_transform = @mingw_manpage_transform@
ifeq ($(target_alias),$(host_alias)) ifeq ($(target_alias),$(host_alias))
ifeq ($(build_alias),$(host_alias)) ifeq ($(build_alias),$(host_alias))
@ -421,7 +429,7 @@ install-dirs:
$(mkinstalldirs) $(inst_includedir) $(mkinstalldirs) $(inst_includedir)
$(mkinstalldirs) $(inst_libdir) $(mkinstalldirs) $(inst_libdir)
$(mkinstalldirs) $(inst_docdir) $(mkinstalldirs) $(inst_docdir)
$(mkinstalldirs) $(mandir)/man3 $(mkinstalldirs) $(mandir)/$(mansection)
install: all install-dirs $(install_dlls_host) install: all install-dirs $(install_dlls_host)
for i in $(LIBS); do \ for i in $(LIBS); do \
@ -444,11 +452,11 @@ install: all install-dirs $(install_dlls_host)
# This provisional hack installs the only manpage we have at present... # This provisional hack installs the only manpage we have at present...
# It simply CANNOT suffice, when we have more manpages to ship. # It simply CANNOT suffice, when we have more manpages to ship.
# #
$(mkinstalldirs) $(mandir)/man3 $(mkinstalldirs) $(mandir)/$(mansection)
$(INSTALL_DATA) $(srcdir)/man/dirname.man $(mandir)/man3/`\ $(INSTALL_DATA) $(srcdir)/man/dirname.man $(mandir)/$(mansection)/`\
echo dirname.man|sed '$(manpage_transform);s,man$$,3,'` echo dirname.man|sed '$(manpage_transform);s,man$$,$(mansuffix),'`
$(INSTALL_DATA) $(srcdir)/man/dirname.man $(mandir)/man3/`\ $(INSTALL_DATA) $(srcdir)/man/dirname.man $(mandir)/$(mansection)/`\
echo basename.man|sed '$(manpage_transform);s,man$$,3,'` echo basename.man|sed '$(manpage_transform);s,man$$,$(mansuffix),'`
# #
# End provisional hack. # End provisional hack.
# #