Skip to content

Instantly share code, notes, and snippets.

@mshr-h
Created March 7, 2017 11:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mshr-h/fd86ba47f4d7740f2f6260296a5e2578 to your computer and use it in GitHub Desktop.
Save mshr-h/fd86ba47f4d7740f2f6260296a5e2578 to your computer and use it in GitHub Desktop.
$HOME/local/src/Makefile
CC=clang
CXX=clang++
PWD=$(shell pwd)
JOBS=$(shell nproc)
.ONESHELL:
.PHONY: all
all: vim iverilog go
.PHONY: fetch
fetch:
cd $(PWD)/vim
git pull
cd $(PWD)/iverilog
git pull
cd $(PWD)/go
git pull
.PHONY: distclean
distclean:
cd $(PWD)/vim
make distclean
cd $(PWD)/vim/src
make distclean
cd $(PWD)/iverilog
make distclean
.PHONY: vim
vim:
cd $(PWD)/vim
./configure \
--with-features=huge \
--enable-multibyte \
--enable-python3interp \
--enable-gpm \
--enable-cscope \
--enable-fontset \
--prefix=$$HOME/local "$*"
make CC=$(CC) CXX=$(CXX) -j$(JOBS)
make install
.PHONY: iverilog
iverilog:
cd $(PWD)/iverilog
autoconf
./configure --prefix=$$HOME/local
make CC=$(CC) CXX=$(CXX) -j$(JOBS)
make install
.PHONY: go
go:
cd $(PWD)/go
cd src
./make.bash
@mshr-h
Copy link
Author

mshr-h commented Mar 7, 2017

make fetch; make distclean; make

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment