# **************************************************************************** #
#                                                                              #
#                                                         :::      ::::::::    #
#    Makefile                                           :+:      :+:    :+:    #
#                                                     +:+ +:+         +:+      #
#    By: <gbaconni@42lausanne.ch>                   +#+  +:+       +#+         #
#                                                 +#+#+#+#+#+   +#+            #
#    Created: 2021/10/23 16:07:38 by gbaconni          #+#    #+#              #
#    Updated: 2021/10/23 16:07:43 by gbaconni         ###   lausanne.ch        #
#                                                                              #
# **************************************************************************** #

all: sync

sync: test update
	@git status | grep -q 'nothing to commit' || (git add -A && git commit -am "$$(date '+%F %T')" && git push) || true

test:
	@dig +short vogsphere.baco.net A | grep -q '213\.5\.156\.25' || echo 'vogsphere.baco.net unreachable'

update:
	@git pull

