You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@annotator.apache.org by ra...@apache.org on 2020/01/31 05:37:22 UTC

[incubator-annotator] 03/03: Add Makefile

This is an automated email from the ASF dual-hosted git repository.

randall pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-annotator.git

commit c63fde0875766c5215ffa7bfc722f688914ef3dc
Author: Randall Leeds <ra...@apache.org>
AuthorDate: Thu Jan 30 21:22:01 2020 -0800

    Add Makefile
---
 Makefile | 33 +++++++++++++++++++++++++++++++++
 1 file changed, 33 insertions(+)

diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..8bd355c
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,33 @@
+# Licensed under the Apache License, Version 2.0 (the "License"); you may not
+# use this file except in compliance with the License. You may obtain a copy of
+# the License at
+#
+#   http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+# License for the specific language governing permissions and limitations under
+# the License.
+
+ANNOTATOR_VERSION := $(shell jq -r .version < lerna.json)
+
+.PHONY: all
+all: build
+
+.PHONY: build
+build:
+	@yarn
+
+.PHONY: clean
+clean:
+	@yarn run clean
+
+.PHONY: dist
+dist:
+	@rm -rf apache-annotator-$(ANNOTATOR_VERSION)
+	@git archive \
+		--output apache-annotator-$(ANNOTATOR_VERSION).tar.gz \
+		--prefix apache-annotator-$(ANNOTATOR_VERSION)/ \
+		HEAD
+	@echo "Done: apache-annotator-$(ANNOTATOR_VERSION).tar.gz"