Skip to content

Commit

Permalink
Introduce VERCMD in Makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
baskerville committed Mar 16, 2016
1 parent 1f903cd commit d1214b9
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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)

Expand Down

0 comments on commit d1214b9

Please sign in to comment.