applying patches to make gnu compiler args conditional, to install docs, and to add pkgconfig support to the installation

This commit is contained in:
mes5k 2009-08-22 19:26:17 +00:00
parent a7b1e0ce2b
commit 1ffebb2a33
5 changed files with 33 additions and 2 deletions

View File

@ -3,3 +3,8 @@ ACLOCAL_AMFLAGS = -I config
SUBDIRS = include examples docs tests msc config
pkgconfigdir = $(libdir)/pkgconfig
pkgconfig_DATA = $(PACKAGE).pc
EXTRA_DIST = $(PACKAGE).pc.in
DISTCLEANFILES = $(PACKAGE).pc

View File

@ -11,7 +11,11 @@ AC_CHECK_PROG(DOT,dot,YES,NO)
AC_PROG_RANLIB
AC_PROG_INSTALL
BB_ENABLE_DOXYGEN
AM_CONDITIONAL([HAVE_GNU_COMPILERS], [test x$ac_cv_cxx_compiler_gnu = xyes])
AC_OUTPUT([ Makefile \
tclap.pc
examples/Makefile \
include/Makefile \
include/tclap/Makefile \

View File

@ -10,7 +10,20 @@ all:
endif
EXTRA_DIST = index.html manual.html style.css manual.xml
EXTRA_DIST = manual.xml
dist_doc_DATA = index.html manual.html style.css
install-data-local :
$(MKDIR_P) $(DESTDIR)$(docdir)/html
cp -R html $(DESTDIR)$(docdir)/html
uninstall-local :
chmod -R +w $(DESTDIR)$(docdir)/html
rm -rf $(DESTDIR)$(docdir)/html
dist-hook :
$(MKDIR_P) $(distdir)/html
cp -R html $(distdir)
clean-local:
$(RM) -rf html

View File

@ -25,4 +25,6 @@ test19_SOURCES = test19.cpp
AM_CPPFLAGS = -I$(top_srcdir)/include
AM_CXXFLAGS = -Wall -Wextra
if HAVE_GNU_COMPILERS
AM_CXXFLAGS = -Wall -Wextra
endif

7
tclap.pc.in Normal file
View File

@ -0,0 +1,7 @@
prefix=@prefix@
includedir=@includedir@
Name: tclap
Description: Templatized C++ Command Line Parser
Version: @VERSION@
Cflags: -I${includedir}