X-Git-Url: http://git.madism.org/?p=apps%2Fmadmutt.git;a=blobdiff_plain;f=lib-lua%2FMakefile.am;h=8f149f5117882d1961e540a3ef35e6b6d99c668b;hp=c30e6bc280541b7955e72231008e34b3f84a34ec;hb=0dc3054df348d3c9788ecf6aba028668c684a7bc;hpb=06972cc96259a466cf14821d8b803bf3972d8fa2 diff --git a/lib-lua/Makefile.am b/lib-lua/Makefile.am index c30e6bc..8f149f5 100644 --- a/lib-lua/Makefile.am +++ b/lib-lua/Makefile.am @@ -1,8 +1,24 @@ +BUILT_SOURCES = lua-token.h lua-token.c +DISTCLEANFILES = $(BUILT_SOURCES) + +.cpkg.c: ; ./luapkg2c.pl -c $< > $@ +.cpkg.h: ; ./luapkg2c.pl -h $< > $@ + noinst_LIBRARIES = liblua.a -liblua_a_SOURCES = lib-lua.h \ - runtime.c +liblua_a_DEPENDENCIES = madmutt.h +liblua_a_SOURCES = madmutt.cpkg \ + lib-lua.h \ + runtime.c \ + $(BUILT_SOURCES) noinst_HEADERS = lib-lua.h +lua-token.c lua-token.h: lua-token.sh + sh $< $@ || (rm -f $@; exit 1) + +DEFS=-DPKGDATADIR=\"$(pkgdatadir)\" -DSYSCONFDIR=\"$(sysconfdir)\" \ + -DBINDIR=\"$(bindir)\" -DMUTTLOCALEDIR=\"$(datadir)/locale\" \ + -DHAVE_CONFIG_H=1 -DPKGDOCDIR=\"$(docdir)\" + -include ../cflags.mk