Skip to content

Commit ff63f64

Browse files
committed
update makefile
1 parent f9a0a10 commit ff63f64

File tree

3 files changed

+19
-14
lines changed

3 files changed

+19
-14
lines changed

DESCRIPTION

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Package: githist
22
Title: Code analyses traced along the 'git' history of a package
3-
Version: 0.0.1.025
3+
Version: 0.0.1.026
44
Authors@R:
55
person("Mark", "Padgham", , "mark.padgham@email.com", role = c("aut", "cre"),
66
comment = c(ORCID = "0000-0003-2172-5265"))

codemeta.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"codeRepository": "https://github.com/ropensci-review-tools/githist",
99
"issueTracker": "https://github.com/ropensci-review-tools/githist/issues",
1010
"license": "https://spdx.org/licenses/GPL-3.0",
11-
"version": "0.0.1.025",
11+
"version": "0.0.1.026",
1212
"programmingLanguage": {
1313
"@type": "ComputerLanguage",
1414
"name": "R",

makefile

+17-12
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,34 @@
11
LFILE = README
22
VIGNETTE = pkgstats
33

4-
#all: insert knith #open
5-
all: init vignette
4+
all: help
65

7-
init:
6+
init: ## Initialize `pkgdown` site
87
echo "pkgdown::init_site()" | R --no-save -q
98

10-
vignette:
9+
vignette: ## Render vignette defined at top of `makefile`
1110
echo "pkgdown::build_article('$(VIGNETTE)',quiet=FALSE)" | R --no-save -q
1211

13-
14-
knith: $(LFILE).Rmd
12+
knith: $(LFILE).Rmd ## Render readme to HTML
1513
echo "rmarkdown::render('$(LFILE).Rmd',output_file='$(LFILE).html')" | R --no-save -q
1614

17-
knitr: $(LFILE).Rmd
15+
knitr: $(LFILE).Rmd ## Render `REAMDE.Rds` to `README.md`.
1816
echo "rmarkdown::render('$(LFILE).Rmd',output_file='$(LFILE).md')" | R --no-save -q
1917

20-
#open: $(LFILE).html
21-
# xdg-open $(LFILE).html &
22-
open:
18+
open: ## Open HTML-rendered vignette
2319
xdg-open docs/articles/$(VIGNETTE).html &
2420

25-
check:
21+
pkgcheck: ## Run `pkgcheck` and print results to screen.
2622
Rscript -e 'library(pkgcheck); checks <- pkgcheck(); print(checks); summary (checks)'
2723

28-
clean:
24+
clean: ## Clean all temp and cached files
2925
rm -rf *.html *.png README_cache
26+
27+
help: ## Show this help
28+
@printf "Usage:\033[36m make [target]\033[0m\n"
29+
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-20s\033[0m %s\n", $$1, $$2}'
30+
31+
# Phony targets:
32+
.PHONY: doc
33+
.PHONY: check
34+
.PHONY: help

0 commit comments

Comments
 (0)