Cleaned up directory structure

This commit is contained in:
R. Eric Wheeler 2015-07-15 10:46:41 -07:00
parent d6e5df0767
commit 3e3a377f27
11 changed files with 59 additions and 58 deletions

11
.gitignore vendored
View File

@ -1,9 +1,3 @@
# Ignore configuration files that may contain sensitive information.
sites/*/*settings*.php
# Ignore paths that contain generated content.
# Ignore default text files
.deps .deps
config config
/AUTHORS /AUTHORS
@ -24,11 +18,7 @@ config.status
libtool libtool
stamp-h1 stamp-h1
# Ignore output files # Ignore output files
libpipecolors.o
libpipecolors.so
.libs/ .libs/
libpipecolors.la
libpipecolors.lo
libpipecolors.pc libpipecolors.pc
tests/ tests/
test/ test/
@ -36,4 +26,3 @@ test/
# Ignore backup files # Ignore backup files
*~ *~
libpipecolors.h libpipecolors.h
cpp-btree/

View File

@ -1,57 +1,15 @@
pkgconfig_DATA = libpipecolors.pc SUBDIRS = src man
AM_LDFLAGS = $(LDFLAGS)
ACLOCAL_AMFLAGS = -I m4 -I config ACLOCAL_AMFLAGS = -I m4 -I config
LIBTOOL_DEPS = @LIBTOOL_DEPS@
lib_LTLIBRARIES = libpipecolors.la
libpipecolors_la_SOURCES = libpipecolors.cc
libpipecolors_la_LIBS = -lboost_regex
libpipecolors_la_CFLAGS = -fPIC -DPIC -pthread
if PC_REMOVE_INVALID
AM_CPPFLAGSINVALID = -DPC_REMOVE_INVALID
endif
AM_CPPFLAGS = $(AM_CPPFLAGSINVALID)
libpipecolors_la_LDFLAGS = -module \
-release ${PIPECOLORS_VERSION}
include_HEADERS = pipecolors.h
noinst_HEADERS = config.h
man_MANS = libpipecolors.7 pcprintf.3
docdir = $(datadir)/doc/@PACKAGE@ docdir = $(datadir)/doc/@PACKAGE@
doc_DATA = README NEWS AUTHORS ChangeLog COPYING doc_DATA = README NEWS AUTHORS ChangeLog COPYING
MAINTAINERCLEANFILES = \ MAINTAINERCLEANFILES = \
aclocal.m4 \ aclocal.m4 \
config.h \
config.h.in \
config.h.in~ \
config.log \ config.log \
stamp-h1 \ stamp-h1 \
-rf config \ -rf config \
-rf m4 \ -rf m4 \
configure \ configure \
Makefile.in \ Makefile.in
-rf cpp-btree
install-man: install-man3 install-man7 install-man-gzip
uninstall-man: uninstall-man3 uninstall-man7 uninstall-man-gzip
install-man-gzip:
test -f $(mandir)/man3/pcprintf.3 && gzip -qf /usr/share/man/man3/pcprintf.3
test -f $(mandir)/man7/libpipecolors.7 && gzip -qf /usr/share/man/man7/libpipecolors.7
test -f $(mandir)/man3/pcprintf.3.gz && ln -sf /usr/share/man/man3/pcprintf.3.gz /usr/share/man/man3/pcsprintf.3.gz
uninstall-man-gzip:
test -f $(mandir)/man3/pcprintf.3.gz && rm -f /usr/share/man/man3/pcprintf.3.gz
test -h $(mandir)/man3/pcsprintf.3.gz && rm -f /usr/share/man/man3/pcsprintf.3.gz
test -f $(mandir)/man7/libpipecolors.7.gz && rm -f /usr/share/man/man7/libpipecolors.7.gz
libtool: $(LIBTOOL_DEPS)
$(SHELL) ./config.status libtool

View File

@ -17,8 +17,8 @@ AC_SUBST([PIPECOLORS_VERSION_MICRO], [pipecolors_version_micro])
AC_SUBST([PIPECOLORS_VERSION], [pipecolors_version]) AC_SUBST([PIPECOLORS_VERSION], [pipecolors_version])
PKG_INSTALLDIR PKG_INSTALLDIR
AC_CONFIG_SRCDIR([libpipecolors.cc]) AC_CONFIG_SRCDIR([src/libpipecolors.cc])
AC_CONFIG_HEADERS([config.h]) AC_CONFIG_HEADERS([src/config.h])
AC_CONFIG_AUX_DIR([config]) AC_CONFIG_AUX_DIR([config])
AC_CANONICAL_TARGET AC_CANONICAL_TARGET
AC_CANONICAL_HOST AC_CANONICAL_HOST
@ -69,7 +69,7 @@ AC_ARG_ENABLE([the-force],
AM_CONDITIONAL([ENABLE_THE_FORCE], [test "x$enable_the_force" = "xyes"]) AM_CONDITIONAL([ENABLE_THE_FORCE], [test "x$enable_the_force" = "xyes"])
AC_CONFIG_FILES([Makefile libpipecolors.pc:libpipecolors.pc.in libpipecolors.h:libpipecolors.h.in],[],[APIVERSION=PIPECOLORS_VERSION]) AC_CONFIG_FILES([Makefile src/Makefile man/Makefile src/libpipecolors.pc:src/libpipecolors.pc.in src/libpipecolors.h:src/libpipecolors.h.in],[],[APIVERSION=PIPECOLORS_VERSION])
AC_CONFIG_COMMANDS([timestamp], [date >timestamp]) AC_CONFIG_COMMANDS([timestamp], [date >timestamp])
AC_OUTPUT AC_OUTPUT

19
man/Makefile.am Normal file
View File

@ -0,0 +1,19 @@
man_MANS = libpipecolors.7 pcprintf.3
MAINTAINERCLEANFILES = \
Makefile.in
install-man: install-man3 install-man7 install-man-gzip
uninstall-man: uninstall-man3 uninstall-man7 uninstall-man-gzip
install-man-gzip:
test -f $(mandir)/man3/pcprintf.3 && gzip -qf /usr/share/man/man3/pcprintf.3
test -f $(mandir)/man7/libpipecolors.7 && gzip -qf /usr/share/man/man7/libpipecolors.7
test -f $(mandir)/man3/pcprintf.3.gz && ln -sf /usr/share/man/man3/pcprintf.3.gz /usr/share/man/man3/pcsprintf.3.gz
uninstall-man-gzip:
test -f $(mandir)/man3/pcprintf.3.gz && rm -f /usr/share/man/man3/pcprintf.3.gz
test -h $(mandir)/man3/pcsprintf.3.gz && rm -f /usr/share/man/man3/pcsprintf.3.gz
test -f $(mandir)/man7/libpipecolors.7.gz && rm -f /usr/share/man/man7/libpipecolors.7.gz

35
src/Makefile.am Normal file
View File

@ -0,0 +1,35 @@
pkgconfig_DATA = libpipecolors.pc
AM_LDFLAGS = $(LDFLAGS)
ACLOCAL_AMFLAGS = -I m4 -I config
LIBTOOL_DEPS = @LIBTOOL_DEPS@
lib_LTLIBRARIES = libpipecolors.la
libpipecolors_la_SOURCES = libpipecolors.cc
libpipecolors_la_LIBS = -lboost_regex
libpipecolors_la_CFLAGS = -fPIC -DPIC -pthread
if PC_REMOVE_INVALID
AM_CPPFLAGSINVALID = -DPC_REMOVE_INVALID
endif
AM_CPPFLAGS = $(AM_CPPFLAGSINVALID)
libpipecolors_la_LDFLAGS = -module \
-release ${PIPECOLORS_VERSION}
include_HEADERS = pipecolors.h
noinst_HEADERS = config.h
MAINTAINERCLEANFILES = \
aclocal.m4 \
config.h \
config.h.in \
config.h.in~ \
config.log \
stamp-h1 \
Makefile.in
libtool: $(LIBTOOL_DEPS)
$(SHELL) ../config.status libtool