1 # versioned installation directories
3 verpkglibdir
= $(pkglibdir
)/@VERSION@
4 verpkglibexecdir
= $(libexecdir
)/@PACKAGE@
/@VERSION@
5 verpkgdatadir
= $(pkgdatadir
)/@VERSION@
6 docdir
= $(verpkgdatadir
)/doc
7 docchmdir
= $(docdir
)/chm
8 dochtmldir
= $(docdir
)/html
9 docsharedir
= $(docdir
)/share
10 demodir
= $(verpkgdatadir
)/demo
11 emacsdir
= $(verpkgdatadir
)/emacs
12 sharedir
= $(verpkgdatadir
)/share
13 instsrcdir
= $(verpkgdatadir
)/src
14 xmaximadir
= $(verpkgdatadir
)/xmaxima
15 insttestsdir
= $(verpkgdatadir
)/tests
17 # Support for installation of DATA files in a generic directory
18 # with subdirectories.
19 # To use, set genericdir to point to the installation directory.
20 # Set genericdirDATA to hold the list of files to install.
21 # genericdirDATA may contain subdirectories. Subdirectories will
22 # be created if necessary.
24 install-data-local
: install-datafiles
25 install-datafiles
: $(genericdirDATA
)
27 $(mkinstalldirs
) $(DESTDIR
)$(genericdir
)
28 @list
='$(genericdirDATA)'; for p in
$$list; do \
29 if
test -f
$(srcdir)/$$p; then \
30 if
test ! -d
`dirname $(DESTDIR)$(genericdir)/$$p`; then \
31 $(mkinstalldirs
) `dirname $(DESTDIR)$(genericdir)/$$p`; \
33 echo
" $(INSTALL_DATA) $(srcdir)/$$p $(DESTDIR)$(genericdir)/$$p"; \
34 $(INSTALL_DATA
) $(srcdir)/$$p $(DESTDIR
)$(genericdir
)/$$p; \
35 else if
test -f
$$p; then \
36 if
test ! -d
`dirname $(DESTDIR)$(genericdir)/$$p`; then \
37 $(mkinstalldirs
) `dirname $(DESTDIR)$(genericdir)/$$p`; \
39 echo
" $(INSTALL_DATA) $$p $(DESTDIR)$(genericdir)/$$p"; \
40 $(INSTALL_DATA
) $$p $(DESTDIR
)$(genericdir
)/$$p; \
44 uninstall-local
: uninstall-datafiles
47 list
='$(genericdirDATA)'; for p in
$$list; do \
48 rm -f
$(DESTDIR
)$(genericdir
)/$$p; \