21625f40b5
I tried to get the latest versions from dockapps.org, but I haven't tested any of them. More dockapps will be added as time permits.
31 lines
696 B
Makefile
31 lines
696 B
Makefile
CC ?= gcc
|
|
CFLAGS ?= -g -pipe
|
|
|
|
PREFIX ?= /usr/local
|
|
|
|
INSTALL_DIR := $(PREFIX)/bin
|
|
PIXMAP_DIR := $(PREFIX)/share/pixmaps
|
|
MANPAGE_DIR := $(PREFIX)/share/man/man1
|
|
|
|
CFLAGS += $(shell pkg-config audacious --cflags)
|
|
LIBS := $(shell pkg-config audacious --libs)
|
|
|
|
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)
|