From 300b07df3b6e71f1b15751724c17b5e84fa53667 Mon Sep 17 00:00:00 2001 From: skilion Date: Tue, 2 Jan 2018 16:50:54 +0100 Subject: [PATCH] added DC variable in Makefile --- Makefile | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/Makefile b/Makefile index cd36f48b..a961b1f6 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,5 @@ -DFLAGS = -ofonedrive -L-lcurl -L-lsqlite3 -L-ldl -J. +DC = dmd +DFLAGS = -g -ofonedrive -O -L-lcurl -L-lsqlite3 -L-ldl -J. PREFIX = /usr/local SOURCES = \ @@ -20,25 +21,19 @@ all: onedrive onedrive.service clean: rm -f onedrive onedrive.o onedrive.service -debug: version $(SOURCES) - dmd -debug -g -gs $(DFLAGS) $(SOURCES) - install: all install -D onedrive $(DESTDIR)$(PREFIX)/bin/onedrive install -D -m 644 onedrive.service $(DESTDIR)/usr/lib/systemd/user/onedrive.service onedrive: version $(SOURCES) - dmd -g -inline -O -release $(DFLAGS) $(SOURCES) + $(DC) $(DFLAGS) $(SOURCES) onedrive.service: sed "s|@PREFIX@|$(PREFIX)|g" onedrive.service.in > onedrive.service -unittest: $(SOURCES) - dmd -debug -g -gs -unittest $(DFLAGS) $(SOURCES) - uninstall: rm -f $(DESTDIR)$(PREFIX)/bin/onedrive rm -f $(DESTDIR)/usr/lib/systemd/user/onedrive.service version: .git/HEAD .git/index - echo $(shell git describe --tags 2>/dev/null) >version \ No newline at end of file + echo $(shell git describe --tags) >version \ No newline at end of file