Makefile updated
This commit is contained in:
parent
36686c9f74
commit
8e8566f320
1 changed files with 35 additions and 6 deletions
41
Makefile
41
Makefile
|
@ -8,16 +8,16 @@ all: build
|
||||||
.ONESHELL:
|
.ONESHELL:
|
||||||
install:
|
install:
|
||||||
if hash apt-get 2>/dev/null; then
|
if hash apt-get 2>/dev/null; then
|
||||||
sudo apt-get update -qq >/dev/null && sudo apt-get install -qq apt-utils imagemagick python3-pip python3-setuptools gcc
|
sudo apt-get update -qq >/dev/null && sudo apt-get install -qq apt-utils imagemagick python3-pip python3-setuptools gcc git-lfs
|
||||||
elif hash pacman 2>/dev/null; then
|
elif hash pacman 2>/dev/null; then
|
||||||
sudo pacman -Syu imagemagick python-pip glibc lib32-glibc gcc --noconfirm
|
sudo pacman -Syu imagemagick python-pip glibc lib32-glibc gcc git-lfs --noconfirm
|
||||||
elif hash dnf 2>/dev/null; then
|
elif hash dnf 2>/dev/null; then
|
||||||
sudo dnf install -y ImageMagick python3-pip gcc
|
sudo dnf install -y ImageMagick python3-pip gcc git-lfs
|
||||||
else
|
else
|
||||||
echo -e "Please install Imagemagick, python3-pip and gcc"
|
echo -e "Please install Imagemagick, python3-pip git-lfs and gcc"
|
||||||
fi
|
fi
|
||||||
pip3 install wheel --user
|
pip3 install wheel --user --upgrade
|
||||||
pip3 install lektor --user
|
pip3 install lektor --user --upgrade
|
||||||
|
|
||||||
|
|
||||||
build:
|
build:
|
||||||
|
@ -33,3 +33,32 @@ deploy:
|
||||||
lektor plugin flush-cache
|
lektor plugin flush-cache
|
||||||
lektor build $(LEKTOR_PLUGIN_FLAGS) $(LEKTOR_DEPLOY_FLAGS)
|
lektor build $(LEKTOR_PLUGIN_FLAGS) $(LEKTOR_DEPLOY_FLAGS)
|
||||||
lektor deploy $(LEKTOR_PLUGIN_FLAGS) $(LEKTOR_DEPLOY_FLAGS)
|
lektor deploy $(LEKTOR_PLUGIN_FLAGS) $(LEKTOR_DEPLOY_FLAGS)
|
||||||
|
|
||||||
|
pull:
|
||||||
|
if git config remote.github.url > /dev/null; then
|
||||||
|
git pull github master
|
||||||
|
else
|
||||||
|
git remote add github git@github.com:c3woc/c3woc-podcast.git
|
||||||
|
git pull github master
|
||||||
|
fi
|
||||||
|
if git config remote.gitea.url > /dev/null; then
|
||||||
|
git pull gitea master
|
||||||
|
else
|
||||||
|
git remote add gitea gitea@gitea.see-base.de:C3WOC/c3woc-podcast.git
|
||||||
|
git pull gitea master
|
||||||
|
fi
|
||||||
|
git pull origin master
|
||||||
|
|
||||||
|
push:
|
||||||
|
if git config remote.gitea.url > /dev/null; then
|
||||||
|
git push gitea master
|
||||||
|
else
|
||||||
|
git remote add gitea gitea@gitea.see-base.de:C3WOC/c3woc-podcast.git
|
||||||
|
git push gitea master
|
||||||
|
fi
|
||||||
|
if git config remote.github.url > /dev/null; then
|
||||||
|
git push github master
|
||||||
|
else
|
||||||
|
git remote add github git@github.com:c3woc/c3woc-podcast.git
|
||||||
|
git push github master
|
||||||
|
fi
|
||||||
|
|
Loading…
Reference in a new issue