mirror of
https://github.com/abraunegg/onedrive
synced 2024-05-29 12:03:07 +02:00
738536736a
- unified configs - logging module - new cmd line option to change the config dir
39 lines
828 B
Makefile
39 lines
828 B
Makefile
DC = dmd
|
|
DFLAGS = -ofonedrive -L-lcurl -L-lsqlite3 -L-ldl
|
|
DESTDIR = /usr/local/bin
|
|
CONFDIR = /usr/local/etc
|
|
|
|
SOURCES = \
|
|
src/config.d \
|
|
src/itemdb.d \
|
|
src/log.d \
|
|
src/main.d \
|
|
src/monitor.d \
|
|
src/onedrive.d \
|
|
src/sqlite.d \
|
|
src/sync.d \
|
|
src/upload.d \
|
|
src/util.d
|
|
|
|
onedrive: $(SOURCES)
|
|
$(DC) -O -release -inline -boundscheck=off $(DFLAGS) $(SOURCES)
|
|
|
|
debug: $(SOURCES)
|
|
$(DC) -debug -g -gs $(DFLAGS) $(SOURCES)
|
|
|
|
unittest: $(SOURCES)
|
|
$(DC) -unittest -debug -g -gs $(DFLAGS) $(SOURCES)
|
|
|
|
clean:
|
|
rm -f onedrive.o onedrive
|
|
|
|
install: onedrive onedrive.conf
|
|
install onedrive $(DESTDIR)/onedrive
|
|
install -m 644 onedrive.conf $(CONFDIR)/onedrive.conf
|
|
install -m 644 onedrive.service /usr/lib/systemd/user
|
|
|
|
uninstall:
|
|
rm -f $(DESTDIR)/onedrive
|
|
rm -f $(CONFDIR)/onedrive.conf
|
|
rm -f /usr/lib/systemd/user/onedrive.service
|