sxhkd-rc

[fork] simple X hotkey daemon (but for the rc shell)
Log | Files | Refs | README | LICENSE

commit d1214b9a2a52eae0fe748d79962d0df8e2701e8b
parent 1f903cd626afa5042a246ff7ec1cbab4ca9bd99e
Author: Bastien Dejean <nihilhill@gmail.com>
Date:   Wed, 16 Mar 2016 10:32:27 +0100

Introduce VERCMD in Makefile

Diffstat:
MMakefile | 7++++---
1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/Makefile b/Makefile @@ -1,5 +1,6 @@ NAME = sxhkd -VERSION := $(shell git describe 2> /dev/null || cat VERSION) +VERCMD ?= git describe 2> /dev/null +VERSION := $(shell $(VERCMD) || cat VERSION) CPPFLAGS += -D_POSIX_C_SOURCE=200112L -DVERSION=\"$(VERSION)\" CFLAGS += -std=c99 -pedantic -Wall -Wextra @@ -10,8 +11,8 @@ BINPREFIX ?= $(PREFIX)/bin MANPREFIX ?= $(PREFIX)/share/man DOCPREFIX ?= $(PREFIX)/share/doc/$(NAME) -SRC = $(wildcard *.c) -OBJ = $(SRC:.c=.o) +SRC := $(wildcard *.c) +OBJ := $(SRC:.c=.o) all: $(NAME)