Mercurial > MadButterfly
changeset 174:9008ac31efbd
Install scripts and M4 macros in tools/ sub-directory.
Invoke automake to install scripts and pkgdata file.
author | Thinker K.F. Li <thinker@branda.to> |
---|---|
date | Fri, 31 Oct 2008 10:57:47 +0800 |
parents | c490796f6c82 |
children | 67e13d694230 |
files | Makefile.am configure.ac tools/Makefile tools/Makefile.am tools/Makefile.pmake |
diffstat | 5 files changed, 25 insertions(+), 21 deletions(-) [+] |
line wrap: on
line diff
--- a/Makefile.am Fri Oct 31 09:14:16 2008 +0800 +++ b/Makefile.am Fri Oct 31 10:57:47 2008 +0800 @@ -1,4 +1,4 @@ -SUBDIRS = src +SUBDIRS = src tools pkgconfigdir = $(libdir)/pkgconfig pkgconfig_DATA = libmbfly.pc EXTRA_DIST = libmbfly.pc.in
--- a/configure.ac Fri Oct 31 09:14:16 2008 +0800 +++ b/configure.ac Fri Oct 31 10:57:47 2008 +0800 @@ -34,5 +34,6 @@ AC_CONFIG_FILES([Makefile libmbfly.pc - src/Makefile]) + src/Makefile + tools/Makefile]) AC_OUTPUT
--- a/tools/Makefile Fri Oct 31 09:14:16 2008 +0800 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,19 +0,0 @@ -BINS= svg2code.py -M4SCRIPTS= mb_c_header.m4 mb_c_source.m4 foreach.m4 -PREFIX?= /usr/local/ - -all: - -install: -.for i in $(BINS) - $(INSTALL) -m 755 ${i} ${PREFIX}bin/ -.endfor - $(INSTALL) -d ${PREFIX}share/mb -.for i in $(M4SCRIPTS) - $(INSTALL) ${i} ${PREFIX}share/mb/ -.endfor - -clean: - for i in *~; do \ - echo "delete $$i"; rm -f $$i; \ - done
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/tools/Makefile.am Fri Oct 31 10:57:47 2008 +0800 @@ -0,0 +1,3 @@ +pkgdatadir = $(datadir)/mb +pkgdata_DATA = foreach.m4 mb_c_header.m4 mb_c_source.m4 +bin_SCRIPTS = svg2code.py
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/tools/Makefile.pmake Fri Oct 31 10:57:47 2008 +0800 @@ -0,0 +1,19 @@ +BINS= svg2code.py +M4SCRIPTS= mb_c_header.m4 mb_c_source.m4 foreach.m4 +PREFIX?= /usr/local/ + +all: + +install: +.for i in $(BINS) + $(INSTALL) -m 755 ${i} ${PREFIX}bin/ +.endfor + $(INSTALL) -d ${PREFIX}share/mb +.for i in $(M4SCRIPTS) + $(INSTALL) ${i} ${PREFIX}share/mb/ +.endfor + +clean: + for i in *~; do \ + echo "delete $$i"; rm -f $$i; \ + done