~onli/simdock/master

22 by onli
Replace autoconf-buildsystem with pkg-config/Makefile
1
PREFIX ?= /usr
2
DESTDIR ?=
3
BINDIR ?= $(PREFIX)/bin
4
APPDIR ?= $(PREFIX)/share/simdock
5
ICONDIR ?= $(PREFIX)/share/pixmaps
6
SRCDIR ?= src/
7
8
SHELL ?= /bin/sh
30 by onli
Make it compile on Ubuntu 14.04-64
9
CC = g++
84 by onli
Move from wxsvg to librsvg
10
CCFLAGS ?= -O2
11
DEPS = $(shell pkg-config --libs --cflags glib-2.0 gconf-2.0 gtk+-2.0 libwnck-1.0 xcb-ewmh librsvg-2.0)
83 by onli
Fix compilation failure by reverting to initial simple makefile
12
DEPS += $(shell wx-config --cflags --libs)
13
14
.PHONY: install uninstall
15
16
all:
17
	$(CC) $(CCFLAGS) $(SRCDIR)*.cc $(DEPS) $(LDLIBS) -o simdock
22 by onli
Replace autoconf-buildsystem with pkg-config/Makefile
18
19
install: 
20
	@install -d "$(DESTDIR)$(BINDIR)" "$(DESTDIR)$(APPDIR)" "$(DESTDIR)$(ICONDIR)"
21
	@install -m 0755 -v simdock "$(DESTDIR)$(BINDIR)/simdock"
22
	@install -m 0644 -v gfx/* "$(DESTDIR)$(APPDIR)/"
23
	@install -m 0644 -v gfx/simdock.png "$(DESTDIR)$(ICONDIR)/"
24
25
uninstall:
83 by onli
Fix compilation failure by reverting to initial simple makefile
26
	@rm -vf "$(DESTDIR)$(BINDIR)/simdock" "$(DESTDIR)$(APPDIR)/*" "$(DESTDIR)$(ICONDIR)/simdock.png"