Site: desklet upgrade, aurnotify 0.0.2 => 0.0.4
[adesklets.git] / scripting / python / Makefile.am
blob69991cb7efaf8372cc3999529f6a8ece7b917ce3
1 AUTOMAKE_OPTIONS = 1.5
3 DESTDIR ?= /
5 EXTRA_DIST=adesklets \
6            protoize.py pretty_printer.py posix_signal.c
8 all-am: python-compile
10 # should use $(builddir), but that's not supported?
11 distclean-local:
12         -rm -rf $(srcdir)/build $(srcdir)/*.pyc
14 dist-hook: adesklets/commands.py
15         cp adesklets/commands.py $(distdir)/adesklets
16         find $(distdir)/adesklets -name '*.pyc' -exec rm \{\} ';'
18 if PYTHON_SUPPORT
19 adesklets/commands.py: ../prototypes ../enums
20         @PYTHON@ setup.py protoize
22 python-compile: adesklets/commands.py
23         @PYTHON@ setup.py build
24 install-data-local:
25         @PYTHON@ setup.py install --root=$(DESTDIR)
26 else
27 python-compile:
28 endif