# Makefile for rhistory
# retoor <retoor@molodetz.nl>

BUILD_DIR = build
INSTALL_DIR = /usr/local/bin

.PHONY: all build clean install debug

all: build

build:
	mkdir -p $(BUILD_DIR)
	cd $(BUILD_DIR) && cmake .. && make

debug:
	mkdir -p $(BUILD_DIR)
	cd $(BUILD_DIR) && cmake -DCMAKE_BUILD_TYPE=Debug .. && make

install: build
	cd $(BUILD_DIR) && sudo make install

clean:
	rm -rf $(BUILD_DIR)
