aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorDavid <dbphillipsnz@gmail.com>2014-12-20 23:50:38 +1300
committerDavid <dbphillipsnz@gmail.com>2014-12-20 23:50:38 +1300
commitc5dc1df6bafb5a322300d852c1c47f2d1de5a14d (patch)
tree54a7d96fd0f988acc8c885726b76f31006379adb /Makefile
parent6ee2c4560cff8da139d4bd4465fd67dfc1a42465 (diff)
downloadparamano-c5dc1df6bafb5a322300d852c1c47f2d1de5a14d.tar.xz
Changed debug recipe to more logical one
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile41
1 files changed, 27 insertions, 14 deletions
diff --git a/Makefile b/Makefile
index 2411b60..f46fc98 100644
--- a/Makefile
+++ b/Makefile
@@ -15,10 +15,6 @@ PARAMANO_CONF=$(SYSCONFDIR)/paramano.conf
ROOT_UID=0
-ifdef DEBUG
- DEFS += -DDEBUG
-endif
-
DEFS += -DPREFIX=\"$(PREFIX)\" \
-DBINDIR=\"$(BINDIR)\" \
-DSUDO=\"$(SUDO)\" \
@@ -68,6 +64,15 @@ CFLAGS = -I/usr/include/gtk-2.0 \
LDFLAGS = -lgtk-3 \
-lgobject-2.0 \
-lglib-2.0
+
+
+
+########################################################################
+# Phony targets
+.PHONY: all debug lang paramano-extra clean strip install
+########################################################################
+
+
########################################################################
# Make entire suite
all: paramano paramano-set lang paramano-extra
@@ -75,6 +80,15 @@ all: paramano paramano-set lang paramano-extra
########################################################################
+# Make entire suite, with a huge amount of debug messages compiled-in
+# Seriously, don't use this feature unless you're actually having a
+# bug. It'll flood your system journal with repetitive, boring drivel
+debug:
+ make all CFLAGS="$(CFLAGS) -DDEBUG"
+########################################################################
+
+
+########################################################################
# Make main paramano system tray program
paramano: bat_tray.o \
common.o \
@@ -99,7 +113,6 @@ paramano-set: \
getcore.o \
getfreq.o \
getgov.o
-
$(CC) -o $@ $? $(LDFLAGS)
########################################################################
@@ -146,19 +159,19 @@ clean:
########################################################################
# Install entire suite
install:
- mkdir -p $(DESTDIR)/$(SHAREDIR)/paramano/
- cp -r themes $(DESTDIR)/$(SHAREDIR)/paramano/
+ mkdir -p "$(DESTDIR)/$(SHAREDIR)/paramano/"
+ cp -r themes "$(DESTDIR)/$(SHAREDIR)/paramano/"
- install -Dm 644 lc/fr.mo $(DESTDIR)/$(LOCALEDIR)/fr/LC_MESSAGES/paramano.mo
+ install -Dm 644 lc/fr.mo "$(DESTDIR)/$(LOCALEDIR)/fr/LC_MESSAGES/paramano.mo"
- install -Dm 644 paramano.conf $(DESTDIR)/$(PARAMANO_CONF)
- install -Dm 644 paramano.desktop $(DESTDIR)/etc/xdg/autostart/paramano.desktop
+ install -Dm 644 paramano.conf "$(DESTDIR)/$(PARAMANO_CONF)"
+ install -Dm 644 paramano.desktop "$(DESTDIR)/etc/xdg/autostart/paramano.desktop"
- install -Dm 755 paramano $(DESTDIR)/$(PARAMANO)
- install -Dm 755 paramano-set $(DESTDIR)/$(PARAMANO_SET)
+ install -Dm 755 paramano "$(DESTDIR)/$(PARAMANO)"
+ install -Dm 755 paramano-set "$(DESTDIR)/$(PARAMANO_SET)"
# These provide some compatability with trayfreq
- ln -s paramano $$(dirname $(DESTDIR)/$(PARAMANO))/trayfreq
- ln -s paramano-set $$(dirname $(DESTDIR)/$(PARAMANO))/trayfreq-set
+ ln -s paramano "$$(dirname $(DESTDIR)/$(PARAMANO))/trayfreq"
+ ln -s paramano-set "$$(dirname $(DESTDIR)/$(PARAMANO))/trayfreq-set"
########################################################################