Files
iot-dc3/Makefile
T

56 lines
1.4 KiB
Makefile

#
# Copyright 2016-2021 Pnoker. All Rights Reserved.
#
# 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.
#
# tip:
# make -f ./Makefile dev
# make -f ./Makefile deploy
# make -f ./Makefile package
# make -f ./Makefile clean
.PHONY: build clean
dev:
&& cd dc3/bin \
&& chmod +x mvn-clean.sh \
&& chmod +x mvn-package.sh \
&& ./mvn-clean.sh \
&& ./mvn-package.sh \
&& cd dev \
&& chmod +x docker-compose-build.sh \
&& chmod +x docker-compose-up.sh \
&& ./docker-compose-build.sh \
&& ./docker-compose-up.sh \
deploy:
cd dc3/bin \
&& chmod +x mvn-clean.sh \
&& chmod +x mvn-package.sh \
&& chmod +x mvn-deploy.sh \
&& ./mvn-clean.sh \
&& ./mvn-package.sh \
&& ./mvn-deploy.sh
package:
cd dc3/bin \
&& chmod +x mvn-clean.sh \
&& chmod +x mvn-package.sh \
&& ./mvn-clean.sh \
&& ./mvn-package.sh
clean:
cd dc3/bin \
&& chmod +x mvn-clean.sh \
&& ./mvn-clean.sh