18
18
# This is the src/PluginUtils level Makefile for Gramps
19
# $Id: Makefile.am 18851 2012-02-10 20:25:15Z josipsf $
19
20
# We could use GNU make's ':=' syntax for nice wildcard use,
20
21
# but that is not necessarily portable.
21
22
# If not using GNU make, then list all .py files individually
24
pkgdatadir = $(datadir)/@PACKAGE@
23
25
pkgincludedir = $(includedir)/@PACKAGE@
24
26
pkglibdir = $(libdir)/@PACKAGE@
25
27
pkglibexecdir = $(libexecdir)/@PACKAGE@
38
40
subdir = src/gui/plug
39
DIST_COMMON = $(pkgdata_PYTHON) $(srcdir)/Makefile.am \
41
DIST_COMMON = $(pkgpython_PYTHON) $(srcdir)/Makefile.am \
40
42
$(srcdir)/Makefile.in
41
43
ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
42
44
am__aclocal_m4_deps = $(top_srcdir)/m4/intltool.m4 \
77
79
sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \
78
80
sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g'
79
am__installdirs = "$(DESTDIR)$(pkgdatadir)"
81
am__installdirs = "$(DESTDIR)$(pkgpythondir)"
80
82
py_compile = $(top_srcdir)/py-compile
81
83
RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive \
82
84
distclean-recursive maintainer-clean-recursive
221
222
oldincludedir = @oldincludedir@
222
223
pdfdir = @pdfdir@
223
224
pkgpyexecdir = @pkgpyexecdir@/gui/plug
224
pkgpythondir = @pkgpythondir@/gui/plug
225
pkgpythondir = $(datadir)/@PACKAGE@/gui/plug
225
226
prefix = @prefix@
226
227
program_transform_name = @program_transform_name@
280
281
$(ACLOCAL_M4): $(am__aclocal_m4_deps)
281
282
cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
282
283
$(am__aclocal_m4_deps):
283
install-pkgdataPYTHON: $(pkgdata_PYTHON)
284
install-pkgpythonPYTHON: $(pkgpython_PYTHON)
284
285
@$(NORMAL_INSTALL)
285
test -z "$(pkgdatadir)" || $(MKDIR_P) "$(DESTDIR)$(pkgdatadir)"
286
@list='$(pkgdata_PYTHON)'; dlist=; list2=; test -n "$(pkgdatadir)" || list=; \
286
test -z "$(pkgpythondir)" || $(MKDIR_P) "$(DESTDIR)$(pkgpythondir)"
287
@list='$(pkgpython_PYTHON)'; dlist=; list2=; test -n "$(pkgpythondir)" || list=; \
287
288
for p in $$list; do \
288
289
if test -f "$$p"; then b=; else b="$(srcdir)/"; fi; \
289
290
if test -f $$b$$p; then \
295
296
for file in $$list2; do echo $$file; done | $(am__base_list) | \
296
297
while read files; do \
297
echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(pkgdatadir)'"; \
298
$(INSTALL_DATA) $$files "$(DESTDIR)$(pkgdatadir)" || exit $$?; \
298
echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(pkgpythondir)'"; \
299
$(INSTALL_DATA) $$files "$(DESTDIR)$(pkgpythondir)" || exit $$?; \
299
300
done || exit $$?; \
300
301
if test -n "$$dlist"; then \
301
302
if test -z "$(DESTDIR)"; then \
302
PYTHON=$(PYTHON) $(py_compile) --basedir "$(pkgdatadir)" $$dlist; \
303
PYTHON=$(PYTHON) $(py_compile) --basedir "$(pkgpythondir)" $$dlist; \
304
PYTHON=$(PYTHON) $(py_compile) --destdir "$(DESTDIR)" --basedir "$(pkgdatadir)" $$dlist; \
305
PYTHON=$(PYTHON) $(py_compile) --destdir "$(DESTDIR)" --basedir "$(pkgpythondir)" $$dlist; \
308
uninstall-pkgdataPYTHON:
309
uninstall-pkgpythonPYTHON:
309
310
@$(NORMAL_UNINSTALL)
310
@list='$(pkgdata_PYTHON)'; test -n "$(pkgdatadir)" || list=; \
311
@list='$(pkgpython_PYTHON)'; test -n "$(pkgpythondir)" || list=; \
311
312
files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \
312
313
test -n "$$files" || exit 0; \
313
314
filesc=`echo "$$files" | sed 's|$$|c|'`; \
314
315
fileso=`echo "$$files" | sed 's|$$|o|'`; \
315
echo " ( cd '$(DESTDIR)$(pkgdatadir)' && rm -f" $$files ")"; \
316
cd "$(DESTDIR)$(pkgdatadir)" && rm -f $$files || exit $$?; \
317
echo " ( cd '$(DESTDIR)$(pkgdatadir)' && rm -f" $$filesc ")"; \
318
cd "$(DESTDIR)$(pkgdatadir)" && rm -f $$filesc || exit $$?; \
319
echo " ( cd '$(DESTDIR)$(pkgdatadir)' && rm -f" $$fileso ")"; \
320
cd "$(DESTDIR)$(pkgdatadir)" && rm -f $$fileso
316
echo " ( cd '$(DESTDIR)$(pkgpythondir)' && rm -f" $$files ")"; \
317
cd "$(DESTDIR)$(pkgpythondir)" && rm -f $$files || exit $$?; \
318
echo " ( cd '$(DESTDIR)$(pkgpythondir)' && rm -f" $$filesc ")"; \
319
cd "$(DESTDIR)$(pkgpythondir)" && rm -f $$filesc || exit $$?; \
320
echo " ( cd '$(DESTDIR)$(pkgpythondir)' && rm -f" $$fileso ")"; \
321
cd "$(DESTDIR)$(pkgpythondir)" && rm -f $$fileso
322
323
# This directory's subdirectories are mostly independent; you can cd
323
324
# into them and run `make' without going through this Makefile.
518
519
installdirs: installdirs-recursive
520
for dir in "$(DESTDIR)$(pkgdatadir)"; do \
521
for dir in "$(DESTDIR)$(pkgpythondir)"; do \
521
522
test -z "$$dir" || $(MKDIR_P) "$$dir"; \
523
524
install: install-recursive
622
623
install-am install-data install-data-am install-dvi \
623
624
install-dvi-am install-exec install-exec-am install-html \
624
625
install-html-am install-info install-info-am install-man \
625
install-pdf install-pdf-am install-pkgdataPYTHON install-ps \
626
install-pdf install-pdf-am install-pkgpythonPYTHON install-ps \
626
627
install-ps-am install-strip installcheck installcheck-am \
627
628
installdirs installdirs-am maintainer-clean \
628
629
maintainer-clean-generic mostlyclean mostlyclean-generic pdf \
629
630
pdf-am ps ps-am tags tags-recursive uninstall uninstall-am \
630
uninstall-pkgdataPYTHON
631
uninstall-pkgpythonPYTHON
634
635
(export PYTHONPATH=$(GRAMPS_PY_MODPATH); \
635
pychecker $(pkgdata_PYTHON));
636
pychecker $(pkgpython_PYTHON));
637
638
# Tell versions [3.59,3.63) of GNU make to not export all variables.
638
639
# Otherwise a system limit (for SysV at least) may be exceeded.