From 148d46b65b649188627d1835e729e452a469e459 Mon Sep 17 00:00:00 2001 From: patrick96 Date: Sun, 23 Dec 2018 22:54:35 +0100 Subject: [PATCH] build: Remove Makefile from root Does basically the same as build.sh --- .gitignore | 2 -- Makefile | 39 --------------------------------------- 2 files changed, 41 deletions(-) delete mode 100644 Makefile diff --git a/.gitignore b/.gitignore index ed0c04d2..73516271 100644 --- a/.gitignore +++ b/.gitignore @@ -1,6 +1,4 @@ /build -/polybar -/polybar-msg /tags /compile_commands.json *.bak diff --git a/Makefile b/Makefile deleted file mode 100644 index 9407581b..00000000 --- a/Makefile +++ /dev/null @@ -1,39 +0,0 @@ -# -# Polybar development tasks -# -BUILDDIR ?= build -GENERATOR ?= $(shell for c in ninja make; do command -vp $$c; done | xargs basename | sed "s/ninja/Ninja/;s/make/Unix Makefiles/") - -all: configure build link - -help: - @echo "Available targets:" - @awk -F':' '/^\w*:/ {print " "$$1;}' Makefile - -configure: - @echo "\033[32;1m**\033[0m Configuring..." - @mkdir -p $(BUILDDIR) - @cd $(BUILDDIR) && cmake -G "$(GENERATOR)" .. - -build: - @echo "\033[32;1m**\033[0m Building..." - @cmake --build $(BUILDDIR) - -install: - @echo "\033[32;1m**\033[0m Installing..." - @cmake --build $(BUILDDIR) --target install - -link: - @echo "\033[32;1m**\033[0m Linking executable..." - @if [ -x $(BUILDDIR)/bin/polybar ]; then ln -sfv $(BUILDDIR)/bin/polybar; fi - @if [ -x $(BUILDDIR)/bin/polybar-msg ]; then ln -sfv $(BUILDDIR)/bin/polybar-msg; fi - -clean: - @echo "\033[32;1m**\033[0m Cleaning up..." - @if [ -d $(BUILDDIR) ]; then rm -rf $(BUILDDIR); fi - @if [ -L polybar ]; then rm -v polybar; fi - @if [ -L polybar-msg ]; then rm -v polybar-msg; fi - -.PHONY: configure build link clean help - -# vim:ts=2 sw=2 noet nolist