R package for downloading OpenStreetMap data
at main 46 lines 1.5 kB view raw
1LFILE = README 2VIGNETTE = osmdata 3 4all: help 5 6init: ## Initialize `pkgdown` site 7 echo "pkgdown::init_site()" | R --no-save -q 8 9vignette: ## Render vignette defined at top of `makefile` 10 echo "pkgdown::build_article('$(VIGNETTE)',quiet=FALSE)" | R --no-save -q 11 12site: ## Build entire `pkgdown` site 13 echo "pkgdown::build_site()" | R --no-save -q 14 15knith: $(LFILE).Rmd ## Render readme to HTML 16 echo "rmarkdown::render('$(LFILE).Rmd',output_file='$(LFILE).html')" | R --no-save -q 17 18knitr: $(LFILE).Rmd ## Render `REAMDE.Rds` to `README.md`. 19 echo "rmarkdown::render('$(LFILE).Rmd',output_format=rmarkdown::md_document(variant='gfm'))" | R --no-save -q 20 21open: ## Open HTML-rendered vignette 22 xdg-open docs/index.html & 23 24check: ## Run `rcmdcheck` 25 Rscript -e 'rcmdcheck::rcmdcheck()' 26 27test: ## Run test suite 28 Rscript -e 'devtools::load_all(); testthat::test_local()' 29 30pkgcheck: ## Run `pkgcheck` and print results to screen. 31 Rscript -e 'library(pkgcheck); checks <- pkgcheck(); print(checks); summary (checks)' 32 33allcontribs: ## Update 'allcontributors' list on README 34 Rscript -e 'allcontributors::add_contributors (check_urls = FALSE)' 35 36clean: ## Clean all temp and cached files 37 rm -rf *.html *.png README_cache 38 39help: ## Show this help 40 @printf "Usage:\033[36m make [target]\033[0m\n" 41 @grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-20s\033[0m %s\n", $$1, $$2}' 42 43# Phony targets: 44.PHONY: doc 45.PHONY: check 46.PHONY: help