blob: c88b0740555905678b74d211aeef6f65c1db5420 [file] [log] [blame]
tiernoed3e4d42019-10-21 15:31:27 +00001##
2# Licensed under the Apache License, Version 2.0 (the "License");
3# you may not use this file except in compliance with the License.
4# You may obtain a copy of the License at
5#
6# http://www.apache.org/licenses/LICENSE-2.0
7#
8# Unless required by applicable law or agreed to in writing, software
9# distributed under the License is distributed on an "AS IS" BASIS,
10# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
11# implied.
12# See the License for the specific language governing permissions and
13# limitations under the License.
14##
15
16all: clean package
17
18clean:
tierno667d1582019-12-20 12:16:46 +000019 rm -rf dist deb_dist osm_rosdn_ietfl2vpn-*.tar.gz osm_rosdn_ietfl2vpn.egg-info .eggs
20 rm -rf osm_rosdn_tapi-*.tar.gz osm_rosdn_tapi.egg-info
tiernoed3e4d42019-10-21 15:31:27 +000021
22package:
23 python3 setup.py --command-packages=stdeb.command sdist_dsc
tierno667d1582019-12-20 12:16:46 +000024 cd deb_dist/osm-rosdn-ietfl2vpn*/ && dpkg-buildpackage -rfakeroot -uc -us
25 for pkg in deb_dist/python3-osm-rosdn-ietfl2vpn*.deb; do cp $$pkg deb_dist/python3-osm-rosdn-tapi$${pkg#*-osm-rosdn-ietfl2vpn} ; done
tiernoed3e4d42019-10-21 15:31:27 +000026