From 7e70c122b103e1bb8f4ec1f641249e2b42dc034f Mon Sep 17 00:00:00 2001 From: Pierre Habouzit Date: Sat, 11 Nov 2006 01:06:24 +0100 Subject: [PATCH] and support the _HEADERS variables as well Signed-off-by: Pierre Habouzit --- am/footer.mk | 10 ++++++++++ madtty/Makefile.in | 9 ++++++--- 2 files changed, 16 insertions(+), 3 deletions(-) diff --git a/am/footer.mk b/am/footer.mk index 25fae74..0acffb8 100644 --- a/am/footer.mk +++ b/am/footer.mk @@ -102,6 +102,16 @@ install-SCRIPTS/%:: install:: $(foreach v,$(filter %_SCRIPTS,$(.VARIABLES)),$(patsubst %_SCRIPTS,install-SCRIPTS/%,$v)) +## +## rules for *_HEADERS +## + +install-HEADERS/%:: + $(if $($*dir), $(INSTALL_DIR) $(DESTDIR)$($*dir)) + $(if $($*dir), $(INSTALL_DATA) $($*_HEADERS) $(DESTDIR)$($*dir)) + +install:: $(foreach v,$(filter %_HEADERS,$(.VARIABLES)),$(patsubst %_HEADERS,install-HEADERS/%,$v)) + ########################################################################}}}# #[ Candy ]##############################################################{{{# diff --git a/madtty/Makefile.in b/madtty/Makefile.in index bb58d1d..f126861 100644 --- a/madtty/Makefile.in +++ b/madtty/Makefile.in @@ -3,14 +3,17 @@ include $(DEPTH)/am/header.mk DISTCLEANFILES = madtty.pc -pkgconfigdir=$(libdir)/pkgconfig -pkgconfig_DATA = madtty.pc + +include_HEADERS = madtty.h lib_LIBRARIES = libmadtty libmadtty_SOURCES = inject.c inject_csi.c inject_csi.h madtty.h rote.c rote_keymap.c roteprivate.h libmadtty_CPPFLAGS = -Wno-error libmadtty_VERSION = @PACKAGE_VERSION@ -include $(DEPTH)/am/footer.mk +pkgconfigdir=$(libdir)/pkgconfig +pkgconfig_DATA = madtty.pc + +include $(DEPTH)/am/footer.mk # vim:set ft=automake: -- 2.20.1