mirror of
https://github.com/leahneukirchen/cwm.git
synced 2023-08-10 21:13:12 +03:00
Make PREFIX, MANPATH and CFLAGS optional variables
This change will make it possible to override PREFIX, MANPATH and CFLAGS using environment variables. This makes the Makefile a little more flexible, benefiting both endusers and those porting to package systems like FreeBSD Ports and pkgsrc. By braakvaak@aol.com.
This commit is contained in:
parent
4935bb73c0
commit
1101877305
6
Makefile
6
Makefile
@ -3,7 +3,7 @@
|
|||||||
|
|
||||||
PROG= cwm
|
PROG= cwm
|
||||||
|
|
||||||
PREFIX= /usr/local
|
PREFIX?= /usr/local
|
||||||
|
|
||||||
SRCS= calmwm.c screen.c xmalloc.c client.c menu.c \
|
SRCS= calmwm.c screen.c xmalloc.c client.c menu.c \
|
||||||
search.c util.c xutil.c conf.c xevents.c group.c \
|
search.c util.c xutil.c conf.c xevents.c group.c \
|
||||||
@ -16,11 +16,11 @@ OBJS= calmwm.o screen.o xmalloc.o client.o menu.o \
|
|||||||
|
|
||||||
CPPFLAGS+= `pkg-config --cflags fontconfig x11 xft xinerama xrandr`
|
CPPFLAGS+= `pkg-config --cflags fontconfig x11 xft xinerama xrandr`
|
||||||
|
|
||||||
CFLAGS= -Wall -O2 -g -D_GNU_SOURCE
|
CFLAGS?= -Wall -O2 -g -D_GNU_SOURCE
|
||||||
|
|
||||||
LDFLAGS+= `pkg-config --libs fontconfig x11 xft xinerama xrandr`
|
LDFLAGS+= `pkg-config --libs fontconfig x11 xft xinerama xrandr`
|
||||||
|
|
||||||
MANPREFIX= ${PREFIX}/share/man
|
MANPREFIX?= ${PREFIX}/share/man
|
||||||
|
|
||||||
all: ${PROG}
|
all: ${PROG}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user