18
18
# This is the src/plugins/import level Makefile for Gramps
19
# $Id: Makefile.am 19020 2012-03-06 16:19:47Z romjerome $
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
39
40
subdir = src/plugins/import
40
DIST_COMMON = $(dist_pkgdata_DATA) $(pkgdata_PYTHON) \
41
DIST_COMMON = $(dist_pkgdata_DATA) $(pkgpython_PYTHON) \
41
42
$(srcdir)/Makefile.am $(srcdir)/Makefile.in
42
43
ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
43
44
am__aclocal_m4_deps = $(top_srcdir)/m4/intltool.m4 \
71
72
sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \
72
73
sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g'
73
am__installdirs = "$(DESTDIR)$(pkgdatadir)" "$(DESTDIR)$(pkgdatadir)"
74
am__installdirs = "$(DESTDIR)$(pkgpythondir)" \
75
"$(DESTDIR)$(pkgdatadir)"
74
76
py_compile = $(top_srcdir)/py-compile
75
77
DATA = $(dist_pkgdata_DATA)
76
78
DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
183
185
oldincludedir = @oldincludedir@
184
186
pdfdir = @pdfdir@
185
187
pkgpyexecdir = @pkgpyexecdir@/plugins/import
186
pkgpythondir = @pkgpythondir@/plugins/import
188
pkgpythondir = $(datadir)/@PACKAGE@/plugins/import
187
189
prefix = @prefix@
188
190
program_transform_name = @program_transform_name@
251
248
$(ACLOCAL_M4): $(am__aclocal_m4_deps)
252
249
cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
253
250
$(am__aclocal_m4_deps):
254
install-pkgdataPYTHON: $(pkgdata_PYTHON)
251
install-pkgpythonPYTHON: $(pkgpython_PYTHON)
255
252
@$(NORMAL_INSTALL)
256
test -z "$(pkgdatadir)" || $(MKDIR_P) "$(DESTDIR)$(pkgdatadir)"
257
@list='$(pkgdata_PYTHON)'; dlist=; list2=; test -n "$(pkgdatadir)" || list=; \
253
test -z "$(pkgpythondir)" || $(MKDIR_P) "$(DESTDIR)$(pkgpythondir)"
254
@list='$(pkgpython_PYTHON)'; dlist=; list2=; test -n "$(pkgpythondir)" || list=; \
258
255
for p in $$list; do \
259
256
if test -f "$$p"; then b=; else b="$(srcdir)/"; fi; \
260
257
if test -f $$b$$p; then \
266
263
for file in $$list2; do echo $$file; done | $(am__base_list) | \
267
264
while read files; do \
268
echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(pkgdatadir)'"; \
269
$(INSTALL_DATA) $$files "$(DESTDIR)$(pkgdatadir)" || exit $$?; \
265
echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(pkgpythondir)'"; \
266
$(INSTALL_DATA) $$files "$(DESTDIR)$(pkgpythondir)" || exit $$?; \
270
267
done || exit $$?; \
271
268
if test -n "$$dlist"; then \
272
269
if test -z "$(DESTDIR)"; then \
273
PYTHON=$(PYTHON) $(py_compile) --basedir "$(pkgdatadir)" $$dlist; \
270
PYTHON=$(PYTHON) $(py_compile) --basedir "$(pkgpythondir)" $$dlist; \
275
PYTHON=$(PYTHON) $(py_compile) --destdir "$(DESTDIR)" --basedir "$(pkgdatadir)" $$dlist; \
272
PYTHON=$(PYTHON) $(py_compile) --destdir "$(DESTDIR)" --basedir "$(pkgpythondir)" $$dlist; \
279
uninstall-pkgdataPYTHON:
276
uninstall-pkgpythonPYTHON:
280
277
@$(NORMAL_UNINSTALL)
281
@list='$(pkgdata_PYTHON)'; test -n "$(pkgdatadir)" || list=; \
278
@list='$(pkgpython_PYTHON)'; test -n "$(pkgpythondir)" || list=; \
282
279
files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \
283
280
test -n "$$files" || exit 0; \
284
281
filesc=`echo "$$files" | sed 's|$$|c|'`; \
285
282
fileso=`echo "$$files" | sed 's|$$|o|'`; \
286
echo " ( cd '$(DESTDIR)$(pkgdatadir)' && rm -f" $$files ")"; \
287
cd "$(DESTDIR)$(pkgdatadir)" && rm -f $$files || exit $$?; \
288
echo " ( cd '$(DESTDIR)$(pkgdatadir)' && rm -f" $$filesc ")"; \
289
cd "$(DESTDIR)$(pkgdatadir)" && rm -f $$filesc || exit $$?; \
290
echo " ( cd '$(DESTDIR)$(pkgdatadir)' && rm -f" $$fileso ")"; \
291
cd "$(DESTDIR)$(pkgdatadir)" && rm -f $$fileso
283
echo " ( cd '$(DESTDIR)$(pkgpythondir)' && rm -f" $$files ")"; \
284
cd "$(DESTDIR)$(pkgpythondir)" && rm -f $$files || exit $$?; \
285
echo " ( cd '$(DESTDIR)$(pkgpythondir)' && rm -f" $$filesc ")"; \
286
cd "$(DESTDIR)$(pkgpythondir)" && rm -f $$filesc || exit $$?; \
287
echo " ( cd '$(DESTDIR)$(pkgpythondir)' && rm -f" $$fileso ")"; \
288
cd "$(DESTDIR)$(pkgpythondir)" && rm -f $$fileso
292
289
install-dist_pkgdataDATA: $(dist_pkgdata_DATA)
293
290
@$(NORMAL_INSTALL)
294
291
test -z "$(pkgdatadir)" || $(MKDIR_P) "$(DESTDIR)$(pkgdatadir)"
453
450
install-dist_pkgdataDATA install-dvi install-dvi-am \
454
451
install-exec install-exec-am install-html install-html-am \
455
452
install-info install-info-am install-man install-pdf \
456
install-pdf-am install-pkgdataPYTHON install-ps install-ps-am \
457
install-strip installcheck installcheck-am installdirs \
458
maintainer-clean maintainer-clean-generic mostlyclean \
459
mostlyclean-generic pdf pdf-am ps ps-am uninstall uninstall-am \
460
uninstall-dist_pkgdataDATA uninstall-pkgdataPYTHON
453
install-pdf-am install-pkgpythonPYTHON install-ps \
454
install-ps-am install-strip installcheck installcheck-am \
455
installdirs maintainer-clean maintainer-clean-generic \
456
mostlyclean mostlyclean-generic pdf pdf-am ps ps-am uninstall \
457
uninstall-am uninstall-dist_pkgdataDATA \
458
uninstall-pkgpythonPYTHON
464
462
(export PYTHONPATH=$(GRAMPS_PY_MODPATH); \
465
pychecker $(pkgdata_PYTHON));
463
pychecker $(pkgpython_PYTHON));
467
465
# Tell versions [3.59,3.63) of GNU make to not export all variables.
468
466
# Otherwise a system limit (for SysV at least) may be exceeded.