Skip to content

Instantly share code, notes, and snippets.

@pirxpilot
Created December 19, 2012 00:59
Show Gist options
  • Select an option

  • Save pirxpilot/4333511 to your computer and use it in GitHub Desktop.

Select an option

Save pirxpilot/4333511 to your computer and use it in GitHub Desktop.

Revisions

  1. pirxpilot created this gist Dec 19, 2012.
    4 changes: 4 additions & 0 deletions CURDIR vs. SRCDIR vs. PWD
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,4 @@
    all:
    @echo SRCDIR $(abspath $(dir $(realpath Makefile))/..)
    @echo CURDIR $(abspath $(CURDIR)/..)
    @echo PWD $(abspath $(PWD)/..)