This repository has been archived on 2024-01-12. You can view files and clone it, but cannot push or open issues or pull requests.
WolKal3000/Makefile
2019-04-11 16:35:13 +02:00

29 lines
773 B
Makefile

NAME = kal3000-gcal-import
ICALPARSER = icalparser
INSTALLDIR = /usr/share/wordpress/wp-content/plugins/$(NAME)
SSHACCOUNT = root@192.168.20.30
VERSION = 0.3.1
# Make sure we always ship the latest icalparser version
icalparser:
if [ -d icalparser ] ; then \
cd icalparser && git pull ; \
else \
git clone https://github.com/OzzyCzech/icalparser ; \
fi
release: icalparser
cd .. ; \
rm -f $(NAME)-$(VERSION).zip ; \
zip -9 -r $(NAME)-$(VERSION).zip $(NAME)/$(ICALPARSER)/readme.md $(NAME)/$(ICALPARSER)/LICENSE $(NAME)/$(ICALPARSER)/src/* $(NAME)/$(ICALPARSER)/tools/* $(NAME)/*.php $(NAME)/readme.* $(NAME)/README.*
install: icalparser
rsync --delete -C -av ./ $(SSHACCOUNT):$(INSTALLDIR)
ssh $(SSHACCOUNT) chown -R www-data:www-data $(INSTALLDIR)