chore: initialize project with cmake build system, makefile, readme, and empty source stubs
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
# 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)
|
||||
Reference in New Issue
Block a user