Install developement files for plugins and pkg-config support (autotools).

This commit is contained in:
Emmanuel Bouthenot 2009-05-08 23:45:54 +02:00
parent 55aa9dd0e8
commit fabc49a0b8
3 changed files with 14 additions and 1 deletions

View File

@ -59,6 +59,10 @@ EXTRA_DIST = CMakeLists.txt \
cmake/FindTCL.cmake \
cmake/makedist.sh.in \
weechat.spec \
weechat_icon_32.png
weechat_icon_32.png \
weechat.pc.in
ACLOCAL_AMFLAGS = -I m4
pkgconfigdir = $(libdir)/pkgconfig
pkgconfig_DATA = weechat.pc

View File

@ -30,6 +30,9 @@ AC_GNU_SOURCE
AM_PROG_LIBTOOL
AC_CHECK_PROG(DBLATEX_FOUND, "dblatex", "yes")
# Files to generate
AC_CONFIG_FILES([weechat.pc])
# Add some flags for some OS
case "$host_os" in
freebsd* | openbsd*)

View File

@ -95,3 +95,9 @@ SUBDIRS = . $(alias_dir) $(aspell_dir) $(charset_dir) $(demo_dir) $(fifo_dir) \
$(trigger_dir) $(xfer_dir)
EXTRA_DIST = CMakeLists.txt
# install plugin header
install-data-hook:
$(INSTALL) -d $(includedir)/$(PACKAGE)
$(INSTALL_DATA) weechat-plugin.h $(includedir)/$(PACKAGE)