summaryrefslogtreecommitdiff
path: root/Alacarte/Makefile.am
diff options
context:
space:
mode:
Diffstat (limited to 'Alacarte/Makefile.am')
-rw-r--r--Alacarte/Makefile.am24
1 files changed, 24 insertions, 0 deletions
diff --git a/Alacarte/Makefile.am b/Alacarte/Makefile.am
new file mode 100644
index 0000000..6359d93
--- /dev/null
+++ b/Alacarte/Makefile.am
@@ -0,0 +1,24 @@
+## Process this file with automake to produce Makefile.in
+
+appdir = $(pythondir)/Alacarte
+app_PYTHON = __init__.py MainWindow.py MenuEditor.py util.py
+nodist_app_PYTHON = config.py
+
+config.py: config.py.in
+ sed \
+ -e s!\@prefix\@!$(prefix)! \
+ -e s!\@datadir\@!$(datadir)! \
+ -e s!\@pkgdatadir\@!$(pkgdatadir)! \
+ -e s!\@libexecdir\@!$(libexecdir)! \
+ -e s!\@libdir\@!$(libdir)! \
+ -e s!\@PACKAGE\@!$(PACKAGE)! \
+ -e s!\@VERSION\@!$(VERSION)! \
+ -e s!\@GETTEXT_PACKAGE\@!$(GETTEXT_PACKAGE)! \
+ < $< > $@
+config.py: Makefile
+
+CLEANFILES = config.py
+EXTRA_DIST = config.py.in
+
+all-local: config.py
+