/
Makefile.in
120 lines (104 loc) · 3.15 KB
/
Makefile.in
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
107
108
109
110
111
112
113
114
115
116
117
118
119
120
#
# ${R_HOME}/doc/Makefile
VPATH = @srcdir@
srcdir = @srcdir@
top_srcdir = @top_srcdir@
top_builddir = ..
subdir = doc
include $(top_builddir)/Makeconf
distdir = $(top_builddir)/$(PACKAGE)-$(VERSION)/$(subdir)
INSTFILES = KEYWORDS KEYWORDS.db
DISTFILES = Makefile.in $(INSTFILES) R.1 R.aux
SUBDIRS = html manual
HELP2MAN = $(PERL) $(top_srcdir)/tools/help2man.pl
all: Makefile R docs
Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
@cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@
R: Makefile @MAINTAINER_MODE_TRUE@ maintainer-build
@for d in $(SUBDIRS); do \
(cd $${d} && $(MAKE) $@) || exit 1; \
done
@if test "$(BUILDDIR_IS_SRCDIR)" = no ; then \
$(MAKE) rhome=$(top_builddir) install-sources; \
fi
docs:
@(cd manual && $(MAKE) $@)
install: install-message installdirs install-sources install-man
@for d in $(SUBDIRS); do \
(cd $${d} && $(MAKE) $@) || exit 1; \
done
installdirs:
@$(MKINSTALLDIRS) $(rhome)/$(subdir)
@$(MKINSTALLDIRS) $(mandir)/man1
install-man:
@rm -f $(mandir)/man1/R.1
@$(INSTALL_DATA) $(srcdir)/R.1 $(mandir)/man1
install-message:
@echo "installing $(subdir) ..."
install-sources:
@for f in $(INSTFILES); do \
$(INSTALL_DATA) $(srcdir)/$${f} $(rhome)/$(subdir); \
done
install-strip: install
uninstall:
@echo "uninstalling $(subdir) ..."
@if test -d $(rhome)/$(subdir) \
&& test "`cd $(rhome); $(GETWD)`" \
!= "`cd $(top_builddir); $(GETWD)`"; then \
for d in $(SUBDIRS); do \
(cd $${d} && $(MAKE) $@) || exit 1; \
done; \
for f in $(INSTFILES); do \
rm -f $(rhome)/$(subdir)/$${f}; \
done; \
rmdir $(rhome)/$(subdir) 2>/dev/null \
|| echo " subdir $(subdir) not removed"; \
fi
@rm -f $(mandir)/man1/R.1
dvi info pdf::
@(cd manual && $(MAKE) $@)
mostlyclean:
clean:
@for d in $(SUBDIRS); do \
(cd $${d} && $(MAKE) $@); \
done
@if test "$(BUILDDIR_IS_SRCDIR)" = no ; then \
rm -f $(INSTFILES); \
fi
distclean: clean
@for d in $(SUBDIRS); do \
(cd $${d} && $(MAKE) $@) || exit 1; \
done
@rm -f Makefile
maintainer-clean: distclean
@echo "This command is intended for maintainers to use; it"
@echo "deletes files that may need special rules to rebuild"
@rm -f $(srcdir)/R.1
maintainer-build: $(srcdir)/R.1 windocs
$(srcdir)/R.1: @MAINTAINER_MODE_TRUE@ $(top_srcdir)/src/scripts/R.sh.in $(srcdir)/R.aux
@(cd $(top_builddir)/src/scripts && $(MAKE) R.fe)
@$(HELP2MAN) --include=$(srcdir)/R.aux --no-info --output=$@ \
--name="a language for data analysis and graphics" \
$(top_builddir)/src/scripts/R.fe
windocs:
@(cd $(top_srcdir)/src/gnuwin32 && $(MAKE) -f Makefile.docfiles)
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); do \
if test -f $${d}/Makefile; then \
test -d $(distdir)/$${d} \
|| mkdir $(distdir)/$${d} \
|| exit 1; \
chmod 755 $(distdir)/$${d}; \
(cd $${d} && $(MAKE) distdir) \
|| exit 1; \
else \
((cd $(srcdir); $(TAR) -c -f - --exclude=CVS $${d}) \
| (cd $(distdir); $(TAR) -x -f -)) \
|| exit 1; \
fi; \
done