mirror of
https://github.com/cuberite/TCLAP.git
synced 2025-08-03 09:47:05 -04:00
applying patches to make gnu compiler args conditional, to install docs, and to add pkgconfig support to the installation
This commit is contained in:
parent
a7b1e0ce2b
commit
1ffebb2a33
@ -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
|
||||
|
@ -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 \
|
||||
|
@ -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
|
||||
|
@ -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
7
tclap.pc.in
Normal file
@ -0,0 +1,7 @@
|
||||
prefix=@prefix@
|
||||
includedir=@includedir@
|
||||
|
||||
Name: tclap
|
||||
Description: Templatized C++ Command Line Parser
|
||||
Version: @VERSION@
|
||||
Cflags: -I${includedir}
|
Loading…
x
Reference in New Issue
Block a user