abraunegg-onedrive/Makefile

34 lines
650 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
CONFDIR = /usr/local/etc
2015-09-01 20:45:34 +02:00
SOURCES = \
2015-09-22 10:55:54 +02:00
patch/etc_c_curl.d \
patch/std_net_curl.d \
2015-09-01 20:45:34 +02:00
src/config.d \
2015-09-14 23:56:14 +02:00
src/itemdb.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/sqlite.d \
src/sync.d \
src/util.d
onedrive: $(SOURCES)
2015-09-22 14:49:20 +02:00
$(DC) -O -release -inline -boundscheck=off $(DFLAGS) $(SOURCES)
debug: $(SOURCES)
$(DC) -unittest -debug -g -gs $(DFLAGS) $(SOURCES)
clean:
rm -f onedrive.o onedrive
install: onedrive onedrive.conf
install onedrive $(DESTDIR)
install onedrive.conf $(CONFDIR)
uninstall:
rm -f $(DESTDIR)/onedrive
rm -f $(CONFDIR)/onedrive.conf