-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile
More file actions
47 lines (36 loc) · 938 Bytes
/
Makefile
File metadata and controls
47 lines (36 loc) · 938 Bytes
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
########################################################################
#
# Makefile for rain-tomorrow pre-built ML model
#
########################################################################
# List the files to be included in the .mlm package.
MODEL_FILES = \
demo.R \
print.R \
configure.R \
README.txt \
DESCRIPTION.yaml
# Include standard Makefile templates.
INC_BASE = $(HOME)/.local/share/make
INC_PANDOC = $(INC_BASE)/pandoc.mk
INC_GIT = $(INC_BASE)/git.mk
INC_MLHUB = $(INC_BASE)/mlhub.mk
INC_CLEAN = $(INC_BASE)/clean.mk
ifneq ("$(wildcard $(INC_PANDOC))","")
include $(INC_PANDOC)
endif
ifneq ("$(wildcard $(INC_GIT))","")
include $(INC_GIT)
endif
ifneq ("$(wildcard $(INC_MLHUB))","")
include $(INC_MLHUB)
endif
ifneq ("$(wildcard $(INC_CLEAN))","")
include $(INC_CLEAN)
endif
$(MODEL).RData: train.R
Rscript $<
clean::
rm -rf README.txt
realclean:: clean
rm -rf *.pdf *~