Makefile installer done

This commit is contained in:
Sameer Rahmani 2017-04-08 05:59:12 +04:30
parent c663aeb1b8
commit 77ff59a6b3
2 changed files with 19 additions and 12 deletions

2
.gitignore vendored
View File

@ -7,5 +7,5 @@ build.log
packages/ packages/
lib/magic-buffer.el lib/magic-buffer.el
assets/ assets/
fg42 ./fg42
fonts/ fonts/

View File

@ -1,12 +1,19 @@
install: install:
- git submodule init @echo "Downloading and installing fonts..."
- git submodule update @mkdir -p ~/.fonts
- cp -rv ./fonts/* ~/.fonts/ @wget "https://github.com/FG42/fonts/archive/0.1.0.tar.gz" -O ~/.fonts/fg42.tar.gz
- cp ./config/fg42.user.el ${HOME}/.fg42.el @tar zxf ~/.fonts/fg42.tar.gz -C ~/.fonts --strip 1
- echo "#! /bin/sh" > ./fg42 @cp ./config/fg42.user.el ${HOME}/.fg42.el
- echo "export FG42_HOME=${HOME}/src/FG42" >> ./fg42 @echo "Creating the link..."
- echo 'emacs --name FG42 --no-site-file --no-site-lisp --no-splash --title FG42 -l $FG42_HOME/fg42-config.el "$$@"' >> ./fg42 @echo "#! /bin/sh" > ./fg42
- sudo ln -s `pwd`/fg42 /usr/local/bin/fg42 @echo "export FG42_HOME=${HOME}/src/FG42" >> ./fg42
- sudo mkdir -p /usr/share/fg42/ @echo 'emacs --name FG42 --no-site-file --no-site-lisp --no-splash --title FG42 -l $FG42_HOME/fg42-config.el "$$@"' >> ./fg42
- sudo cp -rv ./share/* /usr/share/fg42/ @sudo rm /usr/local/bin/fg42
- echo "Make sure to install external dependencies of FG42. For more info checkout README.md" @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 :)"