4a0855f460
I'd get this: Pilar:/home/mafra/git-repos/dockapps/wmauda-0.8 # make install install -d /usr/local/bin install -d /usr/local/share/pixmaps install -d /usr/local/share/man/man1 install -m 0755 wmauda /usr/local/bin install -m 0644 wmauda.xpm /usr/local/share/pixmaps install -m 0644 wmauda.1 /usr/local/share/man/man1 [mafra@Pilar:wmauda-0.8]$ wmauda ERROR: Couldn't find /usr/share/pixmaps/wmauda.xpm So change the hardcoded installation prefix to be just /usr instead of /usr/local
34 lines
901 B
Makefile
34 lines
901 B
Makefile
CC ?= gcc
|
|
CFLAGS ?= -g -pipe
|
|
|
|
PREFIX ?= /usr
|
|
|
|
INSTALL_DIR := $(PREFIX)/bin
|
|
PIXMAP_DIR := $(PREFIX)/share/pixmaps
|
|
MANPAGE_DIR := $(PREFIX)/share/man/man1
|
|
|
|
CFLAGS += $(shell pkg-config audacious --cflags) $(shell pkg-config dbus-1 --cflags)
|
|
LIBS := $(shell pkg-config audacious --libs) $(shell pkg-config audclient --libs) $(shell pkg-config dbus-1 --libs)
|
|
|
|
CFLAGS += $(shell pkg-config gtk+-2.0 --cflags)
|
|
LIBS += $(shell pkg-config gtk+-2.0 --libs) -lX11
|
|
|
|
OBJS = wmauda.o
|
|
HEADERS = config.h dock-master.xpm
|
|
|
|
wmauda: $(OBJS) $(HEADERS)
|
|
$(CC) -o wmauda $(OBJS) $(CFLAGS) $(LIBS)
|
|
|
|
all: wmauda
|
|
|
|
clean:
|
|
rm -f *.o wmauda
|
|
|
|
install: all
|
|
install -d $(DESTDIR)$(INSTALL_DIR)
|
|
install -d $(DESTDIR)$(PIXMAP_DIR)
|
|
install -d $(DESTDIR)$(MANPAGE_DIR)
|
|
install -m 0755 wmauda $(DESTDIR)$(INSTALL_DIR)
|
|
install -m 0644 wmauda.xpm $(DESTDIR)$(PIXMAP_DIR)
|
|
install -m 0644 wmauda.1 $(DESTDIR)$(MANPAGE_DIR)
|