Rework Makefile, add config.def.h as default config
This commit is contained in:
parent
b2fad7cd38
commit
7dfc1c9668
4 changed files with 45 additions and 13 deletions
24
Makefile
Normal file
24
Makefile
Normal file
|
@ -0,0 +1,24 @@
|
|||
CFLAGS = -Wall -Wextra -pedantic -lX11 -lXft -I/usr/include/freetype2 -lm -pthread
|
||||
|
||||
PREFIX ?= /usr/local
|
||||
CC ?= cc
|
||||
|
||||
all: herbe
|
||||
|
||||
config.h: config.def.h
|
||||
cp config.def.h config.h
|
||||
|
||||
herbe: herbe.c config.h
|
||||
$(CC) herbe.c $(CFLAGS) -o herbe
|
||||
|
||||
install: herbe
|
||||
mkdir -p ${DESTDIR}${PREFIX}/bin
|
||||
cp -f herbe ${DESTDIR}${PREFIX}/bin
|
||||
|
||||
uninstall:
|
||||
rm -f ${DESTDIR}${PREFIX}/bin/herbe
|
||||
|
||||
clean:
|
||||
rm -f herbe
|
||||
|
||||
.PHONY: all install uninstall clean
|
Loading…
Add table
Add a link
Reference in a new issue