Skip to content

Instantly share code, notes, and snippets.

@triangletodd
Created November 21, 2017 23:44
Show Gist options
  • Select an option

  • Save triangletodd/0ebb84ee4865d53ed7c48900b1b7fa5e to your computer and use it in GitHub Desktop.

Select an option

Save triangletodd/0ebb84ee4865d53ed7c48900b1b7fa5e to your computer and use it in GitHub Desktop.
Make OPTS example
SHELL := /usr/bin/env bash
RSYNC_OPTS := -av --exclude-from 'rsync-exclude.list'
RSYNC = rsync $(RSYNC_OPTS)
install :
$(RSYNC) $(PWD)/ $(HOME)/
dryinstall : RSYNC_OPTS += --dry-run
dryinstall : install
.PHONY: all install
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment