1
1
#
2
- # Copyright (c) 2014, 2018 , Oracle and/or its affiliates. All rights reserved.
2
+ # Copyright (c) 2014, 2019 , Oracle and/or its affiliates. All rights reserved.
3
3
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4
4
#
5
5
# This code is free software; you can redistribute it and/or modify it
21
21
# questions.
22
22
#
23
23
24
- .PHONY : all clean make_subdirs clean_subdirs clean_recommended
24
+ .PHONY : all clean repo clean_repo clean_recommended
25
25
26
26
SUBDIRS = testrffi vanilla tests4 gnurtests
27
27
NATIVE_RECOMMENDED_PROJECT = $(subst test.native,native.recommended,$(TOPDIR ) )
@@ -40,24 +40,28 @@ GNUR_RECOMMENDED := $(wildcard $(GNUR_HOME_BINARY)/src/library/Recommended/*.tgz
40
40
# WARNING: If you add/delete anything in this project you must update mx_fastr_dists.py
41
41
# to reflect the changes, e.g., adding a new SUBDIR
42
42
43
- all : make_subdirs copy_recommended
43
+ all : repo copy_recommended
44
44
45
- make_subdirs :
45
+ # runs make in all the packages directories
46
+ # creates the PACKAGES, PACAKGES.gz, etc. files in the pkgs repository
47
+ repo :
46
48
for dir in $( SUBDIRS) ; do \
47
49
$(MAKE ) PACKAGE=$$ dir -C $$ dir || exit 1; \
48
50
done
51
+ (cd $( REPO_DIR) ; $( GNUR_HOME_BINARY) /bin/R --vanilla --slave -e " tools::write_PACKAGES('.', type='source')" )
49
52
50
53
copy_recommended :
51
54
mkdir -p recommended
52
55
cp $(GNUR_RECOMMENDED ) recommended
53
56
touch copy_recommended
54
57
55
- clean : clean_subdirs clean_recommended
58
+ clean : clean_repo clean_recommended
56
59
57
- clean_subdirs :
60
+ clean_repo :
58
61
for dir in $( SUBDIRS) ; do \
59
62
$(MAKE ) PACKAGE=$$ dir -C $$ dir clean || exit 1; \
60
63
done
64
+ rm $(REPO_DIR ) /PACKAGES*
61
65
62
66
clean_recommended :
63
67
rm -rf recommended copy_recommended
0 commit comments