Created
March 7, 2017 11:07
-
-
Save mshr-h/fd86ba47f4d7740f2f6260296a5e2578 to your computer and use it in GitHub Desktop.
$HOME/local/src/Makefile
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
make fetch; make distclean; make