# # ${R_HOME}/demos/dynload/Makefile VPATH = @srcdir@ srcdir = @srcdir@ top_srcdir = @top_srcdir@ top_builddir = ../.. subdir = demos/dynload include $(top_builddir)/Makeconf distdir = $(top_builddir)/$(PACKAGE)-$(VERSION)/$(subdir) INSTFILES = README zero.R zero.c DISTFILES = Makefile.in $(INSTFILES) all: Makefile R Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status cd $(top_builddir) && \ CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= \ $(SHELL) ./config.status R: @if [ "$(srcdir)" != "." ]; then \ $(MAKE) rhome=$(top_builddir) install; \ fi $(MAKE) zero.$(SHLIBEXT) zero.$(SHLIBEXT): $(srcdir)/zero.c @if [ "$(srcdir)" != "." ]; then \ $(INSTALL_DATA) $(srcdir)/zero.c zero.c; \ fi @$(top_builddir)/bin/R SHLIB -o $@ zero.c @rm -f zero.o docs: install: installdirs @for f in $(INSTFILES); do \ $(INSTALL_DATA) $(srcdir)/$${f} $(rhome)/demos/dynload; \ done installdirs: @$(MKINSTALLDIRS) $(rhome)/demos @$(MKINSTALLDIRS) $(rhome)/demos/dynload install-strip: install uninstall: mostlyclean: clean: @rm -f zero.$(SHLIBEXT) @if [ "$(srcdir)" != "." ]; then \ rm -f $(INSTFILES); \ fi distclean: @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