Debian Codegraph @

tools/KateDJ/Makefile.am

raw
1 kdj_modules=__init__ constants finder tools muxer demuxer tester options ui_main ui_editor ui_options
2 kdj_modules_files = $(kdj_modules:%=kdj/%.py)
3
4 # dummy - this is just for automake to copy py-compile, as it won't do it
5 # if it doesn't see anything in a PYTHON variable. KateDJ is Python, but
6 # is installed as a normal script manually. This works as automake doesn't
7 # do anything for Python sources at build time, only at install time.
8 noinst_PYTHON=KateDJ
9
10 if HAVE_WXPYTHON
11 if HAVE_OGGZ_TOOLS
12 install-exec-local:
13 ${mkinstalldirs} "$(DESTDIR)$(pythondir)/kdj"
14 for module in $(kdj_modules); do \
15 $(INSTALL_DATA) "${top_srcdir}/tools/KateDJ/kdj/$$module.py" "$(DESTDIR)$(pythondir)/kdj"; \
16 if test -z "${DESTDIR}"; then \
17 ${top_srcdir}/misc/autotools/py-compile --basedir "${pythondir}/kdj" "$$module.py"; \
18 else \
19 ${top_srcdir}/misc/autotools/py-compile --destdir "$(DESTDIR)" --basedir "${pythondir}/kdj" "$$module.py"; \
20 fi \
21 done
22 ${mkinstalldirs} "$(DESTDIR)$(bindir)"
23 ${INSTALL_SCRIPT} "${top_srcdir}/tools/KateDJ/KateDJ" "$(DESTDIR)$(bindir)"
24 else
25 install-exec-local:
26 echo "Could not find oggz tools, KateDJ will not be installed"
27 endif
28 else
29 install-exec-local:
30 echo "Could not find wxPython, KateDJ will not be installed"
31 endif
32
33 uninstall-local:
34 for module in $(kdj_modules); do \
35 $(RM) "$(DESTDIR)$(pythondir)/kdj/$$module.py"; \
36 $(RM) "$(DESTDIR)$(pythondir)/kdj/$$module.pyc"; \
37 $(RM) "$(DESTDIR)$(pythondir)/kdj/$$module.pyo"; \
38 done
39 test -d "$(DESTDIR)$(pythondir)/kdj" && rmdir "$(DESTDIR)$(pythondir)/kdj" || true
40 $(RM) "$(DESTDIR)$(bindir)/KateDJ"
41
42 EXTRA_DIST=KateDJ $(kdj_modules_files)