kate-gitplusplus/Makefile

16 lines
407 B
Makefile

.PHONY: all clean install
BUILD_DIR := build
all: $(BUILD_DIR)/gitplusplus.so
$(BUILD_DIR)/gitplusplus.so: gitplusplus.cpp gitplusplus.h gitprocess.h gitstatusmodel.cpp gitstatusmodel.h metadata.json
@mkdir -p $(BUILD_DIR)
@cd $(BUILD_DIR) && cmake .. -DCMAKE_INSTALL_PREFIX=/usr -Wno-dev 2>/dev/null && make -j$$(nproc)
install: all
cd $(BUILD_DIR) && sudo make install
clean:
rm -rf $(BUILD_DIR)