Add templete for python source file with local definitions.

This commit is contained in:
Jon Lund Steffensen
2010-02-11 20:55:38 +01:00
parent b6a6031497
commit 27331fa532
2 changed files with 31 additions and 1 deletions
+10 -1
View File
@@ -20,6 +20,7 @@ EXTRA_redshift_SOURCES = \
AM_CFLAGS =
redshift_LDADD = @LIBINTL@
EXTRA_DIST =
if ENABLE_RANDR
redshift_SOURCES += src/randr.c src/randr.h
@@ -40,15 +41,23 @@ endif
# gtk-redshift Script
if ENABLE_GTK
dist_bin_SCRIPTS = src/gtk-redshift/gtk-redshift.py
bin_SCRIPTS = src/gtk-redshift/defs.py
EXTRA_DIST += src/gtk-redshift/defs.py.in
endif
# Icons
icondir = @datadir@/icons/hicolor/scalable/apps
icon_DATA = data/icons/hicolor/scalable/apps/redshift.svg
EXTRA_DIST = $(icon_DATA)
EXTRA_DIST += $(icon_DATA)
CLEANFILES = src/gtk-redshift/defs.py
# Local python definitions
src/gtk-redshift/defs.py: src/gtk-redshift/defs.py.in
sed -e "s|\@localedir\@|$(localedir)|g" $< > $@
# Update PO translations
.PHONY: update-po
update-po: