Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: tags/R-2-11-1
Fetching contributors…

Cannot retrieve contributors at this time

file 106 lines (92 sloc) 3.032 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106
#
# ${R_HOME}/share/Makefile

VPATH = @srcdir@
srcdir = @srcdir@
top_srcdir = @top_srcdir@

top_builddir = ..
subdir = share

include $(top_builddir)/Makeconf

distdir = $(top_builddir)/$(PACKAGE)-$(VERSION)/$(subdir)
DISTFILES = Makefile.in

## subdirectories of R_HOME/share
SUBDIRS_WITH_NO_BUILD = R encodings licenses make perl sh texmf java
## subdirectories of R_HOME/share/perl
SUBDIRS_SHARE_PERL = R File/Copy

all: Makefile R

Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
@cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@

R: FORCE
@if test "$(BUILDDIR_IS_SRCDIR)" = "no" ; then \
$(MAKE) rsharedir=$(top_builddir)/share install-sources; \
fi
FORCE:

docs:

install: install-message installdirs install-sources
installdirs:
@$(MKINSTALLDIRS) "$(DESTDIR)$(rsharedir)"
@$(MKINSTALLDIRS) "$(DESTDIR)$(rsharedir)/R"
@$(MKINSTALLDIRS) "$(DESTDIR)$(rsharedir)/encodings"
@$(MKINSTALLDIRS) "$(DESTDIR)$(rsharedir)/java"
@$(MKINSTALLDIRS) "$(DESTDIR)$(rsharedir)/licenses"
@$(MKINSTALLDIRS) "$(DESTDIR)$(rsharedir)/make"
@$(MKINSTALLDIRS) "$(DESTDIR)$(rsharedir)/perl"
@for d in $(SUBDIRS_SHARE_PERL); do \
$(MKINSTALLDIRS) "$(DESTDIR)$(rsharedir)/perl/$${d}"; \
done
@$(MKINSTALLDIRS) "$(DESTDIR)$(rsharedir)/sh"
@$(MKINSTALLDIRS) "$(DESTDIR)$(rsharedir)/texmf"
install-message:
@$(ECHO) "installing share ..."
install-sources: installdirs
@for f in $(srcdir)/R/*.R; do \
$(INSTALL_DATA) $${f} "$(DESTDIR)$(rsharedir)/R"; \
done
@for f in $(srcdir)/encodings/*; do \
$(INSTALL_DATA) $${f} "$(DESTDIR)$(rsharedir)/encodings"; \
done
@for f in $(srcdir)/java/*; do \
$(INSTALL_DATA) $${f} "$(DESTDIR)$(rsharedir)/java"; \
done
@for f in $(srcdir)/licenses/*; do \
$(INSTALL_DATA) $${f} "$(DESTDIR)$(rsharedir)/licenses"; \
done
@for f in $(srcdir)/make/*.mk; do \
$(INSTALL_DATA) $${f} "$(DESTDIR)$(rsharedir)/make"; \
done
@for d in $(SUBDIRS_SHARE_PERL); do \
for f in $(srcdir)/perl/$${d}/*.pm; do \
$(INSTALL_DATA) $${f} "$(DESTDIR)$(rsharedir)/perl/$${d}"; \
done; \
done
@for f in $(srcdir)/sh/*.sh; do \
$(INSTALL_DATA) $${f} "$(DESTDIR)$(rsharedir)/sh"; \
done
@for f in $(srcdir)/texmf/*.sty \
$(srcdir)/texmf/*.fd; do \
$(INSTALL_DATA) $${f} "$(DESTDIR)$(rsharedir)/texmf"; \
done
install-strip: install

uninstall:
@$(ECHO) "uninstalling share ..."
@rm -rf "$(DESTDIR)$(rsharedir)"

## we cannot remove make/vars.mk until distclean as etc/Makeconf includes it.
mostlyclean:
clean:
@rm -rf locale

distclean:
@if test "$(BUILDDIR_IS_SRCDIR)" = no ; then \
rm -rf $(SUBDIRS_WITH_NO_BUILD); \
fi
-@rm -f Makefile
maintainer-clean: distclean

distdir: $(DISTFILES)
@for f in $(DISTFILES); do \
test -f $(distdir)/$${f} \
|| ln $(srcdir)/$${f} $(distdir)/$${f} 2>/dev/null \
|| cp -p $(srcdir)/$${f} $(distdir)/$${f}; \
done
@for d in $(SUBDIRS_WITH_NO_BUILD); do \
((cd $(srcdir); $(TAR) -c -f - $(DISTDIR_TAR_EXCLUDE) $${d}) \
| (cd $(distdir); $(TAR) -x -f -)) \
|| exit 1; \
done
Something went wrong with that request. Please try again.