Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,4 @@ tags
syntax.include
syntax.auto.h
pcre_constants.include
Makefile
junk
18 changes: 18 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
default:
@echo "No target defined"

.PHONY: build
build:
ifeq ($(shell uname -s),Darwin)
( source build.macos.env.sh && mkdir -p build && cd build && cmake .. && make )
else
( mkdir -p build && cd build && cmake .. && make )
endif

.PHONY: install
install: build
(cd build && sudo make install)

.PHONY: clean
clean:
rm -rf build
6 changes: 4 additions & 2 deletions install-linux.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
#!/bin/bash

sudo apt-get -y install libgc-dev libffi6 libffi-dev libjson-c-dev peg libpcre3-dev make cmake pandoc pkg-config build-essential
set -e

sudo apt-get install -y libgc-dev libffi6 libffi-dev libjson-c-dev peg libpcre3-dev make cmake pandoc pkg-config build-essential
sudo type awk || sudo apt-get install gawk

mkdir build && cd build && cmake .. && make && sudo make install
make install
7 changes: 7 additions & 0 deletions install-mac.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/bin/bash

set -e

brew install libgc libffi peg cmake pandoc awk make

make install