FG42/Makefile

32 lines
1.2 KiB
Makefile
Raw Normal View History

2018-04-19 02:14:01 +01:00
update:
@git remote set-url origin git://gitlab.com/FG42/FG42.git
2018-04-19 02:14:01 +01:00
@git pull origin master
install:
2017-04-08 02:29:12 +01:00
@echo "Downloading and installing fonts..."
@mkdir -p ~/.fonts
@wget "https://github.com/FG42/fonts/archive/0.1.0.tar.gz" -O ~/.fonts/fg42.tar.gz
@tar zxf ~/.fonts/fg42.tar.gz -C ~/.fonts --strip 1
@cp ./config/fg42.user.el ${HOME}/.fg42.el
@echo "Creating the link..."
@echo "#! /bin/sh" > ./fg42
@echo "export FG42_HOME=$(shell pwd)" >> ./fg42
@echo 'emacs --name FG42 --no-site-file --no-site-lisp --no-splash --title FG42 -l $$FG42_HOME/fg42-config.el "$$@"' >> ./fg42
@chmod +x ./fg42
@sudo rm -f /usr/local/bin/fg42
2017-04-08 02:29:12 +01:00
@sudo ln -s `pwd`/fg42 /usr/local/bin/fg42
@echo "Copying share files..."
@sudo mkdir -p /usr/share/fg42/
@sudo cp -r ./share/* /usr/share/fg42/
@echo " "
@echo "------------------------------------------------------------------------------------"
@echo "Make sure to install external dependencies of FG42. For more info checkout README.md"
@echo "Enjoy the bless of GNU/Emacs and FG42 :)"
install-fonts:
@mkdir -p ~/.fonts/
@cp -rv ./share/fonts/vazir/* ~/.fonts/
2019-12-05 21:03:40 +00:00
build-image:
docker build . -t fg42:1 --build-arg emacs_version=26.3
clean-image:
docker rmi fg42:1