abraunegg-onedrive/Makefile

37 lines
738 B
Makefile
Raw Normal View History

2015-09-01 20:45:34 +02:00
DC = dmd
2015-09-22 14:49:20 +02:00
DFLAGS = -ofonedrive -L-lcurl -L-lsqlite3 -L-ldl
DESTDIR = /usr/local/bin
2015-09-01 20:45:34 +02:00
SOURCES = \
src/config.d \
2015-09-14 23:56:14 +02:00
src/itemdb.d \
src/log.d \
2015-09-01 20:45:34 +02:00
src/main.d \
2015-09-11 18:33:22 +02:00
src/monitor.d \
2015-09-01 20:45:34 +02:00
src/onedrive.d \
src/selective.d \
2015-09-01 20:45:34 +02:00
src/sqlite.d \
src/sync.d \
src/upload.d \
2015-09-01 20:45:34 +02:00
src/util.d
onedrive: $(SOURCES)
2015-09-22 14:49:20 +02:00
$(DC) -O -release -inline -boundscheck=off $(DFLAGS) $(SOURCES)
debug: $(SOURCES)
2016-06-28 14:22:26 +02:00
$(DC) -debug -g -gs $(DFLAGS) $(SOURCES)
unittest: $(SOURCES)
2015-09-22 14:49:20 +02:00
$(DC) -unittest -debug -g -gs $(DFLAGS) $(SOURCES)
clean:
rm -f onedrive.o onedrive
install: onedrive onedrive.service
install onedrive $(DESTDIR)/onedrive
2015-11-29 21:12:44 +01:00
install -m 644 onedrive.service /usr/lib/systemd/user
2015-09-22 14:49:20 +02:00
uninstall:
rm -f $(DESTDIR)/onedrive
2015-11-29 21:12:44 +01:00
rm -f /usr/lib/systemd/user/onedrive.service