Change the project name to lemonbar
This commit is contained in:
34
Makefile
34
Makefile
@@ -1,11 +1,19 @@
|
||||
CC ?= gcc
|
||||
CFLAGS = -Wall -std=c99 -Os
|
||||
LDFLAGS = -lxcb -lxcb-xinerama -lxcb-randr
|
||||
CFDEBUG = -g3 -pedantic -Wall -Wunused-parameter -Wlong-long\
|
||||
-Wsign-conversion -Wconversion -Wimplicit-function-declaration
|
||||
# This snippet has been shmelessly stol^Hborrowed from thestinger's repose Makefile
|
||||
VERSION = 1.1
|
||||
GIT_DESC=$(shell test -d .git && git describe --always 2>/dev/null)
|
||||
|
||||
EXEC = bar
|
||||
SRCS = bar.c
|
||||
ifneq "$(GIT_DESC)" ""
|
||||
VERSION=$(GIT_DESC)
|
||||
endif
|
||||
|
||||
CC ?= gcc
|
||||
CFLAGS += -Wall -std=c99 -Os -DVERSION="\"$(VERSION)\""
|
||||
LDFLAGS += -lxcb -lxcb-xinerama -lxcb-randr
|
||||
CFDEBUG = -g3 -pedantic -Wall -Wunused-parameter -Wlong-long \
|
||||
-Wsign-conversion -Wconversion -Wimplicit-function-declaration
|
||||
|
||||
EXEC = lemonbar
|
||||
SRCS = lemonbar.c
|
||||
OBJS = ${SRCS:.c=.o}
|
||||
|
||||
PREFIX?=/usr
|
||||
@@ -14,7 +22,7 @@ BINDIR=${PREFIX}/bin
|
||||
all: ${EXEC}
|
||||
|
||||
doc: README.pod
|
||||
pod2man --section=1 --center="bar Manual" --name "bar" --release="bar $(shell git describe --always)" README.pod > bar.1
|
||||
pod2man --section=1 --center="lemonbar Manual" --name "lemonbar" --release="lemonbar $(VERSION)" README.pod > lemonbar.1
|
||||
|
||||
.c.o:
|
||||
${CC} ${CFLAGS} -o $@ -c $<
|
||||
@@ -29,12 +37,12 @@ clean:
|
||||
rm -f ./*.o ./*.1
|
||||
rm -f ./${EXEC}
|
||||
|
||||
install: bar doc
|
||||
install -D -m 755 bar ${DESTDIR}${BINDIR}/bar
|
||||
install -D -m 644 bar.1 ${DESTDIR}${PREFIX}/share/man/man1/bar.1
|
||||
install: lemonbar doc
|
||||
install -D -m 755 lemonbar ${DESTDIR}${BINDIR}/lemonbar
|
||||
install -D -m 644 lemonbar.1 ${DESTDIR}${PREFIX}/share/man/man1/lemonbar.1
|
||||
|
||||
uninstall:
|
||||
rm -f ${DESTDIR}${BINDIR}/bar
|
||||
rm -f $(DESTDIR)$(PREFIX)/share/man/man1/bar.1
|
||||
rm -f ${DESTDIR}${BINDIR}/lemonbar
|
||||
rm -f $(DESTDIR)$(PREFIX)/share/man/man1/lemonbar.1
|
||||
|
||||
.PHONY: all debug clean install
|
||||
|
Reference in New Issue
Block a user