40 lines
1.1 KiB
Diff
40 lines
1.1 KiB
Diff
Enable configurable CC and XROOT.
|
|
Add missing $(LIBS) to link and remove strip.
|
|
Add yeahwm.1 to install target.
|
|
|
|
--- yeahwm-0.3.5.orig/Makefile
|
|
+++ yeahwm-0.3.5/Makefile
|
|
@@ -1,11 +1,11 @@
|
|
# If you don't use CC
|
|
-CC = gcc
|
|
+CC ?= gcc
|
|
|
|
# Edit this line if you don't want yeahwm to install under /usr.
|
|
# Note that $(DESTDIR) is used by the Debian build process.
|
|
prefix = $(DESTDIR)/usr
|
|
|
|
-XROOT = /usr/X11R6
|
|
+XROOT ?= /usr/X11R6
|
|
INCLUDES = -I$(XROOT)/include
|
|
LDPATH = -L$(XROOT)/lib
|
|
LIBS = -lX11
|
|
@@ -55,8 +55,7 @@ OBJS = $(SRCS:.c=.o)
|
|
all: yeahwm
|
|
|
|
yeahwm: $(OBJS)
|
|
- $(CC) $(CFLAGS) $(OBJS) -o $@ $(LDFLAGS)
|
|
- strip yeahwm
|
|
+ $(CC) $(CFLAGS) $(OBJS) -o $@ $(LDFLAGS) $(LIBS)
|
|
|
|
allinone:
|
|
cat yeahwm.h $(SRCS) | sed 's/^#include.*yeahwm.*$$//' > allinone.c
|
|
@@ -71,7 +70,7 @@ doinstall:
|
|
if [ -f yeahwm.exe ]; then mv yeahwm.exe yeahwm; fi
|
|
mkdir -p $(prefix)/bin $(prefix)/share/man/man1
|
|
install -s yeahwm $(prefix)/bin
|
|
- #install yeahwm.1 $(prefix)/share/man/man1
|
|
+ install yeahwm.1 $(prefix)/share/man/man1
|
|
#gzip -9 $(prefix)/share/man/man1/yeahwm.1
|
|
|
|
install: doinstall
|