blob: bb1e61244c6434c14f3a732c125d4737678e6c83 [file] [log] [blame]
Kino Roy72d59122022-09-06 17:34:02 -07001#
2# Licensed to the Apache Software Foundation (ASF) under one
3# or more contributor license agreements. See the NOTICE file
4# distributed with this work for additional information
5# regarding copyright ownership. The ASF licenses this file
6# to you under the Apache License, Version 2.0 (the
7# "License"); you may not use this file except in compliance
8# with the License. You may obtain a copy of the License at
9#
10# http://www.apache.org/licenses/LICENSE-2.0
11#
12# Unless required by applicable law or agreed to in writing,
13# software distributed under the License is distributed on an
14# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15# KIND, either express or implied. See the License for the
16# specific language governing permissions and limitations
17# under the License.
18#
19
20#
21# Common thrift code generation rules
22#
23gen_swift:
24 $(THRIFT) --gen swift -r -o Sources/Common $(top_srcdir)/tutorial/tutorial.thrift
25
Thomas63f04582024-03-21 22:51:07 +090026distdir:
27 $(MAKE) $(AM_MAKEFLAGS) distdir-am
28
Kino Roy72d59122022-09-06 17:34:02 -070029tutorial: gen_swift
30 swift run TutorialRunner
31
32tutorialserver: gen_swift
33 swift run TutorialServer
34
35tutorialclient: gen_swift
36 swift run TutorialClient
Jens Geyer0d0ac752024-03-12 21:49:28 +010037
38EXTRA_DIST = \
39 Package.swift \
40 swift-dep \
41 Sources/TutorialClient/main.swift \
42 Sources/TutorialRunner/main.swift \
43 Sources/TutorialServer/main.swift \
44 Sources/TutorialServer/CalculatorService.swift \
45 README.md
46