Skip to content

Instantly share code, notes, and snippets.

@danielholmstrom
Created September 27, 2012 15:26
Show Gist options
  • Save danielholmstrom/3794616 to your computer and use it in GitHub Desktop.
Save danielholmstrom/3794616 to your computer and use it in GitHub Desktop.
DISTFILE=$(shell realpath ./build)/minimal-linux-home.tgz
dist: FORCE
rm -f $(DISTFILE) && cd home/ && tar -zcf $(DISTFILE) .*
FORCE:
Output:
~/projects/minimal_linux_home make
rm -f /Volumes/Projects/projects/minimal_linux_home/build/minimal-linux-home.tgz && cd home/ && tar -zcf /Volumes/Projects/projects/minimal_linux_home/build/minimal-linux-home.tgz .*
tar: ../build/minimal-linux-home.tgz: Can't add archive to itself
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment