Makefile: install linux overlay files
[time-slider.git] / Makefile
index 6ab8dea..3b95458 100644 (file)
--- 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
@@ -98,6 +102,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 \