X-Git-Url: https://git.camperquake.de/gitweb.cgi?p=time-slider.git;a=blobdiff_plain;f=Makefile;h=b0f8064961760019a4609e05a302b9b41c4ae259;hp=6ab8deaf4d3427adc1b8c10d2809008dc0c106c0;hb=7cd849a636c4c88249742d3dc0636329b2a6ffac;hpb=8f1f6d0b5e917f706344d02726dcc6c6e2905ffe diff --git a/Makefile b/Makefile index 6ab8dea..b0f8064 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,8 @@ -include VERSION +ifeq ($(wildcard .git),) + include VERSION +else + VERSION=$(shell git describe) +endif mkinstalldirs = /usr/bin/mkdir -p INSTALL = /usr/bin/install @@ -55,6 +59,8 @@ install: $(INSTALL_DATA) $(DESTDIR)/etc/dbus-1/system.d etc/dbus-1/system.d/time-slider.conf $(mkinstalldirs) $(DESTDIR)/etc/xdg/autostart $(INSTALL_DATA) $(DESTDIR)/etc/xdg/autostart etc/xdg/autostart/*.desktop + $(mkinstalldirs) $(DESTDIR)/usr/lib/systemd/system + $(INSTALL_DATA) $(DESTDIR)/usr/lib/systemd/system etc/systemd/system/*.service $(mkinstalldirs) $(DESTDIR)/lib/svc/method $(INSTALL_SCRIPT) $(DESTDIR)/lib/svc/method lib/svc/method/time-slider $(INSTALL_SCRIPT) $(DESTDIR)/lib/svc/method lib/svc/method/time-slider-plugin @@ -98,6 +104,12 @@ install: $(INSTALL_DATA) $(DESTDIR)/usr/share/time-slider/lib/time_slider $$file; \ fi; \ done + $(mkinstalldirs) $(DESTDIR)/usr/share/time-slider/lib/time_slider/linux + for file in usr/share/time-slider/lib/time_slider/linux/*.py; do \ + if test -f $$file ; then \ + $(INSTALL_DATA) $(DESTDIR)/usr/share/time-slider/lib/time_slider/linux $$file; \ + fi; \ + done $(mkinstalldirs) $(DESTDIR)/usr/share/time-slider/lib/plugin for file in usr/share/time-slider/lib/plugin/*.py; do \ if test -f $$file ; then \ @@ -131,6 +143,7 @@ uninstall: done $(RM) $(DESTDIR)/etc/dbus-1/system.d/time-slider.conf $(RM) $(DESTDIR)/etc/xdg/autostart/time-slider-notify.desktop + $(RM) $(DESTDIR)/usr/lib/systemd/system/time-sliderd.service $(RM) $(DESTDIR)/lib/svc/method/time-slider $(RM) $(DESTDIR)/lib/svc/method/time-slider-plugin $(RM) $(DESTDIR)/lib/svc/method/time-slider-rsync