Roger Meier | 8909cbd | 2014-01-26 11:44:27 +0100 | [diff] [blame] | 1 | # Licensed to the Apache Software Foundation (ASF) under one |
| 2 | # or more contributor license agreements. See the NOTICE file |
| 3 | # distributed with this work for additional information |
| 4 | # regarding copyright ownership. The ASF licenses this file |
| 5 | # to you under the Apache License, Version 2.0 (the |
| 6 | # "License"); you may not use this file except in compliance |
| 7 | # with the License. You may obtain a copy of the License at |
| 8 | # |
| 9 | # http://www.apache.org/licenses/LICENSE-2.0 |
| 10 | # |
| 11 | # Unless required by applicable law or agreed to in writing, |
| 12 | # software distributed under the License is distributed on an |
| 13 | # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY |
| 14 | # KIND, either express or implied. See the License for the |
| 15 | # specific language governing permissions and limitations |
| 16 | # under the License. |
| 17 | |
James E. King, III | 0ad20bd | 2017-09-30 15:44:16 -0700 | [diff] [blame] | 18 | # We call npm twice to work around npm issues |
Roger Meier | 8909cbd | 2014-01-26 11:44:27 +0100 | [diff] [blame] | 19 | |
Roger Meier | 41ad434 | 2015-03-24 22:30:40 +0100 | [diff] [blame] | 20 | stubs: $(top_srcdir)/test/ThriftTest.thrift |
| 21 | $(THRIFT) --gen js:node -o test/ $(top_srcdir)/test/ThriftTest.thrift |
Roger Meier | 8909cbd | 2014-01-26 11:44:27 +0100 | [diff] [blame] | 22 | |
Roger Meier | 281bdae | 2015-02-03 21:45:28 +0100 | [diff] [blame] | 23 | deps: $(top_srcdir)/package.json |
James E. King, III | 0ad20bd | 2017-09-30 15:44:16 -0700 | [diff] [blame] | 24 | $(NPM) install $(top_srcdir)/ || $(NPM) install $(top_srcdir)/ |
Roger Meier | 8909cbd | 2014-01-26 11:44:27 +0100 | [diff] [blame] | 25 | |
Roger Meier | 41ad434 | 2015-03-24 22:30:40 +0100 | [diff] [blame] | 26 | all-local: deps |
| 27 | |
| 28 | precross: deps stubs |
| 29 | |
bforbis | da1169d | 2018-10-28 11:27:38 -0400 | [diff] [blame] | 30 | # TODO: Lint nodejs lib and gen-code as part of build |
Roger Meier | 8909cbd | 2014-01-26 11:44:27 +0100 | [diff] [blame] | 31 | check: deps |
bforbis | da1169d | 2018-10-28 11:27:38 -0400 | [diff] [blame] | 32 | cd $(top_srcdir) && $(NPM) test && $(NPM) run lint-tests && cd lib/nodejs |
Roger Meier | 8909cbd | 2014-01-26 11:44:27 +0100 | [diff] [blame] | 33 | |
| 34 | clean-local: |
James E. King III | b96c438 | 2019-01-24 17:45:07 -0500 | [diff] [blame] | 35 | $(RM) -r test/gen-* |
Roger Meier | 281bdae | 2015-02-03 21:45:28 +0100 | [diff] [blame] | 36 | $(RM) -r $(top_srcdir)/node_modules |
Mustafa Senol Cosar | 3f0d444 | 2019-03-01 18:57:09 +0300 | [diff] [blame^] | 37 | $(RM) -r test/episodic-code-generation-test/gen* |
| 38 | $(RM) -r test/episodic-code-generation-test/node_modules |
jfarrell | 8fd8c63 | 2014-07-10 09:14:51 -0400 | [diff] [blame] | 39 | |
| 40 | EXTRA_DIST = \ |
Jens Geyer | 79f988c | 2014-10-03 20:42:54 +0200 | [diff] [blame] | 41 | examples \ |
| 42 | lib \ |
Jens Geyer | 79f988c | 2014-10-03 20:42:54 +0200 | [diff] [blame] | 43 | test \ |
jfarrell | f13e431 | 2015-08-25 00:39:29 -0400 | [diff] [blame] | 44 | coding_standards.md \ |
Jens Geyer | 79f988c | 2014-10-03 20:42:54 +0200 | [diff] [blame] | 45 | README.md |