X-Git-Url: https://osm.etsi.org/gitweb/?p=osm%2FRO.git;a=blobdiff_plain;f=Makefile;h=90ee12c34c187d84e4a4b6cf68ce1ae314b4cc2e;hp=b5e6960f3b499073afcab9b7cc9fa95e7d94ebb5;hb=187b52ae9922b3b3170080ec78958d7933bde813;hpb=06e6c396413630640cafae3488442a0869f1642d diff --git a/Makefile b/Makefile index b5e6960f..90ee12c3 100644 --- a/Makefile +++ b/Makefile @@ -1,48 +1,24 @@ -SHELL := /bin/bash -all: pypackage debpackage - -prepare: - mkdir -p build - cp *.py build/ - #cd build; mv openmanod.py openmanod - cp openmano build/ - cp openmanod.cfg build/ - cp requirements.txt build/ - cp README.rst build/ - cp openmano.service build/ - cp -r vnfs build/ - cp -r scenarios build/ - cp -r instance-scenarios build/ - cp -r scripts build/ - cd build/scripts; mv service-openmano.sh service-openmano; mv openmano-report.sh openmano-report - cp -r database_utils build/ - -connectors: prepare - # python-novaclient is required for that - rm -f build/openmanolinkervimconn.py - cd build; for i in `ls vimconn_*.py |sed "s/\.py//"` ; do echo "import $$i" >> openmanolinkervimconn.py; done - python build/openmanolinkervimconn.py - rm -f build/openmanolinkervimconn.py - -build: prepare - python -m py_compile build/*.py - -pypackage: build - cd build; ./setup.py sdist - #cp build/dist/* /root/artifacts/... - -debpackage: build - echo "Nothing to be done yet" - #fpm -s python -t deb build/setup.py - -snappackage: - echo "Nothing to be done yet" - -test: - ./test/basictest.sh --force --insert-bashrc --install-openvim --init-openvim - -clean: - rm -rf build - #find build -name '*.pyc' -delete - #find build -name '*.pyo' -delete +# 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. + +SUBDIRS := $(wildcard */Makefile) + +all: clean package +clean: $(SUBDIRS) +package: $(SUBDIRS) + +$(SUBDIRS): + $(MAKE) -C $(@:Makefile=) $(MAKECMDGOALS) + +.PHONY: all $(SUBDIRS)