aboutsummaryrefslogtreecommitdiffstats
path: root/src/gtk-redshift
diff options
context:
space:
mode:
Diffstat (limited to 'src/gtk-redshift')
-rw-r--r--src/gtk-redshift/Makefile.am25
-rw-r--r--src/gtk-redshift/gtk-redshift.in2
2 files changed, 14 insertions, 13 deletions
diff --git a/src/gtk-redshift/Makefile.am b/src/gtk-redshift/Makefile.am
index 9c8479f..ddeafd6 100644
--- a/src/gtk-redshift/Makefile.am
+++ b/src/gtk-redshift/Makefile.am
@@ -1,6 +1,6 @@
-if ENABLE_GTK
-module=statusicon
+if ENABLE_STATUSICON
+gui_module=statusicon
gtk_redshift_PYTHON = \
__init__.py \
statusicon.py
@@ -8,13 +8,11 @@ nodist_gtk_redshift_PYTHON = \
defs.py
gtk_redshiftdir = $(pythondir)/gtk_redshift
-dist_bin_SCRIPTS = gtk-redshift
-EXTRA_DIST = gtk-redshift.in \
- defs.py.in
+bin_SCRIPTS = gtk-redshift
endif
if ENABLE_APPINDICATOR
-module=rsappindicator
+gui_module=rsappindicator
gtk_redshift_PYTHON = \
__init__.py \
rsappindicator.py
@@ -22,18 +20,21 @@ nodist_gtk_redshift_PYTHON = \
defs.py
gtk_redshiftdir = $(pythondir)/gtk_redshift
-dist_bin_SCRIPTS = gtk-redshift
-EXTRA_DIST = gtk-redshift.in \
- defs.py.in
+bin_SCRIPTS = gtk-redshift
endif
+EXTRA_DIST = gtk-redshift.in \
+ defs.py.in
+
CLEANFILES = defs.py \
- gtk-redshift
+ gtk-redshift
-# Local python definitions
+
+# Main GUI script
gtk-redshift: gtk-redshift.in
- sed -e "s|\@module\@|$(module)|g" $< > $@
+ sed -e "s|\@gui_module\@|$(gui_module)|g" $< > $@
+# Local python definitions
defs.py: defs.py.in
sed -e "s|\@bindir\@|$(bindir)|g" \
-e "s|\@localedir\@|$(localedir)|g" $< > $@
diff --git a/src/gtk-redshift/gtk-redshift.in b/src/gtk-redshift/gtk-redshift.in
index 18ee145..120e05c 100644
--- a/src/gtk-redshift/gtk-redshift.in
+++ b/src/gtk-redshift/gtk-redshift.in
@@ -19,5 +19,5 @@
if __name__ == '__main__':
- from gtk_redshift.@module@ import run
+ from gtk_redshift.@gui_module@ import run
run()