Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Remove `stamp-R' when updating.

New dist* targets, not yet fully operational.


git-svn-id: https://svn.r-project.org/R/trunk@2374 00db46b3-68df-0310-9c12-caf00c1e9a41
  • Loading branch information...
commit a2d7cb87ce0e115ff9437286809f6cf8375cb6d2 1 parent 28147fa
hornik authored

Showing 1 changed file with 45 additions and 5 deletions. Show diff stats Hide diff stats

  1. +45 5 Makefile.in
50 Makefile.in
@@ -9,6 +9,17 @@ top_builddir = .
9 9
10 10 include $(top_builddir)/Makeconf
11 11
  12 +distdir = $(PACKAGE)-$(VERSION)
  13 +DISTFILES = COPYING COPYRIGHTS INSTALL MIRROR-SITES NEWS PLATFORMS \
  14 + PROJECTS README RESOURCES TASKS \
  15 + Makeconf.in Makefile.in \
  16 + config.site configure configure.in configure.mac configure.win \
  17 + date-stamp
  18 +SUBDIRS = afm demos doc etc src tests
  19 +
  20 +GZIP = --best
  21 +TAR = tar
  22 +
12 23 all: Makefile R docs
13 24
14 25 Makefile:
@@ -20,6 +31,7 @@ R: stamp-R
20 31 stamp-R: $(top_builddir)/src/include/Platform.h \
21 32 $(top_srcdir)/src/*/*.[chf] \
22 33 $(top_srcdir)/src/library/*/R/*.R
  34 + @rm -f $@
23 35 @for d in afm demos doc etc src; do \
24 36 (cd $$d && $(MAKE) R); \
25 37 done
@@ -59,7 +71,7 @@ install: all installdirs
59 71 $(INSTALL_DATA) $$f $(rhome)/include; \
60 72 done
61 73 @echo "Installing library ..."
62   - @cd library; tar cf - [a-z]* | (cd $(rhome)/library; tar xf -)
  74 + @cd library; $(TAR) cf - [a-z]* | (cd $(rhome)/library; tar xf -)
63 75 @echo " Building help index ..."
64 76 @(cd $(rhome)/library; cat */TITLE > LibIndex 2> /dev/null)
65 77 @echo " Building HTML index ..."
@@ -95,20 +107,48 @@ uninstall:
95 107
96 108 mostlyclean: clean
97 109 clean:
98   - @for d in afm demos doc etc src; do \
  110 + @for d in $(SUBDIRS); do \
99 111 (cd $$d && $(MAKE) $@); \
100 112 done
101 113 @rm -f stamp-R
102 114 distclean: clean
103   - @for d in afm demos doc etc src; do \
104   - (cd $$d && $(MAKE) $@); \
  115 + @for d in $(SUBDIRS); do \
  116 + (cd $${d} && $(MAKE) $@); \
105 117 done
106 118 @rm -rf bin/* include/* library/*
107 119 @rm -f Makeconf Makefile Makefile.bak Makefrag.f77 \
108 120 config.cache config.log config.status
109 121 maintainer-clean: distclean
110 122
111   -dist:
  123 +dist: dist-unix
  124 +dist-unix: distdir
  125 + -chmod -R a+r $(distdir)
  126 + GZIP=$(GZIP) $(TAR) chozf $(distdir).tar.gz $(distdir)
  127 + rm -rf $(distdir)
  128 +dist-win:
  129 +distdir: $(DISTFILES)
  130 + @rm -rf $(distdir)
  131 + @mkdir $(distdir)
  132 + @-chmod 755 $(distdir)
  133 + @for f in $(DISTFILES); do \
  134 + test -f $(distdir)/$${f} \
  135 + || ln $(srcdir)/$${f} $(distdir)/$${f} 2>/dev/null \
  136 + || cp -p $(srcdir)/$${f} $(distdir)/$${f}; \
  137 + done
  138 + @for d in $(SUBDIRS); do \
  139 + test -d $(distdir)/$${d} \
  140 + || mkdir $(distdir)/$${d} \
  141 + || exit 1; \
  142 + chmod 755 $(distdir)/$${d}; \
  143 + (cd $${d} && $(MAKE) distdir) \
  144 + || exit 1; \
  145 + done
  146 + @for d in aux debian; do \
  147 + (cd $(srcdir); \
  148 + FILES=`find $${d} | sed '/CVS/d'`; \
  149 + tar cf - $${FILES} | (cd $(distdir); tar xf -)) \
  150 + || exit 1; \
  151 + done
112 152
113 153 dvi:
114 154 -@(cd doc && $(MAKE) $@)

0 comments on commit a2d7cb8

Please sign in to comment.
Something went wrong with that request. Please try again.