From adf63fbb2d256437faf1a5eee296478a66fe3056 Mon Sep 17 00:00:00 2001 From: "Rafael G. Martins" Date: Mon, 12 Dec 2016 02:42:34 +0100 Subject: build: github-lambda zipfile generation --- Makefile.am | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/Makefile.am b/Makefile.am index 4218c47..b5fbbab 100644 --- a/Makefile.am +++ b/Makefile.am @@ -27,6 +27,8 @@ EXTRA_DIST = \ $(NULL) CLEANFILES = \ + src/blogc-github-lambda/LICENSE \ + src/blogc-github-lambda/blogc \ $(NULL) MAINTAINERCLEANFILES = \ @@ -668,8 +670,6 @@ TESTS = \ CLEANFILES += \ $(check_SCRIPTS) \ - src/blogc-github-lambda/README \ - src/blogc-github-lambda/blogc \ $(NULL) @@ -705,22 +705,22 @@ endif ## Helpers: blogc-github-lambda -$(top_builddir)/blogc-github-lambda-$(VERSION).zip: $(top_builddir)/blogc $(top_srcdir)/LICENSE $(top_srcdir)/src/blogc-github-lambda/lambda_function.py - -rm -f $(top_builddir)/blogc-github-lambda-$(VERSION).zip - $(MKDIR_P) $(top_builddir)/src/blogc-github-lambda +blogc-github-lambda-$(VERSION).zip: blogc $(top_srcdir)/LICENSE $(top_srcdir)/src/blogc-github-lambda/lambda_function.py + -rm -f blogc-github-lambda-$(VERSION).zip + $(MKDIR_P) src/blogc-github-lambda $(INSTALL) -m 644 \ $(top_srcdir)/LICENSE \ - $(top_builddir)/src/blogc-github-lambda/ + src/blogc-github-lambda/ $(INSTALL) -m 644 -C \ $(top_srcdir)/src/blogc-github-lambda/lambda_function.py \ - $(top_builddir)/src/blogc-github-lambda/ + src/blogc-github-lambda/ $(INSTALL) -m 755 \ - $(top_builddir)/blogc \ - $(top_builddir)/src/blogc-github-lambda/blogc - cd $(top_builddir)/src/blogc-github-lambda && \ + blogc \ + src/blogc-github-lambda/blogc + cd src/blogc-github-lambda && \ zip -rq $(abs_top_builddir)/blogc-github-lambda-$(VERSION).zip LICENSE blogc lambda_function.py -blogc-github-lambda: $(top_builddir)/blogc-github-lambda-$(VERSION).zip +blogc-github-lambda: blogc-github-lambda-$(VERSION).zip .PHONY: dist-srpm valgrind blogc-github-lambda -- cgit v1.2.3-18-g5258