Support for installing m4 macros.
authorPeter Verthez <Peter.Verthez@advalvas.be>
Sun, 3 Nov 2002 10:18:29 +0000 (10:18 +0000)
committerPeter Verthez <Peter.Verthez@advalvas.be>
Sun, 3 Nov 2002 10:18:29 +0000 (10:18 +0000)
m4/Makefile.am

index a8d4f3ab8a4cdea305c332845d85d7a80d588ea4..f45a5064fd905078a0d98b4674fedf36faac2b47 100644 (file)
@@ -1,4 +1,13 @@
 ## Process this file with automake to produce Makefile.in
 # $Id$
 # $Name$
-EXTRA_DIST = gedcom.m4
+M4_FILES = gedcom.m4
+EXTRA_DIST = $(M4_FILES)
+
+install-m4:
+       @dir=`aclocal --print-ac-dir`; \
+       echo "Installing m4 macros in $$dir"; \
+       for file in $(M4_FILES); do \
+         $(INSTALL) $(srcdir)/$$file $$dir; \
+       done
+