From c5dc1df6bafb5a322300d852c1c47f2d1de5a14d Mon Sep 17 00:00:00 2001 From: David Date: Sat, 20 Dec 2014 23:50:38 +1300 Subject: Changed debug recipe to more logical one --- Makefile | 41 +++++++++++++++++++++++++++-------------- 1 file changed, 27 insertions(+), 14 deletions(-) (limited to 'Makefile') 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" ######################################################################## -- cgit v1.1