summaryrefslogtreecommitdiff
path: root/src/modules/battery/Makefile.am
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules/battery/Makefile.am')
-rw-r--r--src/modules/battery/Makefile.am13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/modules/battery/Makefile.am b/src/modules/battery/Makefile.am
index c278639d19..fdfa2f7cce 100644
--- a/src/modules/battery/Makefile.am
+++ b/src/modules/battery/Makefile.am
@@ -26,5 +26,18 @@ module_la_LIBADD = @e_libs@ @cf_libs@ @dlopen_libs@
module_la_LDFLAGS = -module -avoid-version
module_la_DEPENDENCIES = $(top_builddir)/config.h
+batgetdir = $(pkgdir)
+batget_DATA = \
+batget$(EXEEXT)
+
+x_mode = a=rx,u+x
+install-data-hook:
+ @chmod $(x_mode) $(DESTDIR)$(batgetdir)/batget$(EXEEXT) || true
+
+noinst_PROGRAMS = batget
+batget_SOURCES = batget.c
+batget_LDFLAGS = @BATTERY_LIBS@
+
+
uninstall:
rm -rf $(DESTDIR)$(libdir)/enlightenment/modules/$(MODULE)