Skip to content

Instantly share code, notes, and snippets.

@Sitwon
Created July 15, 2011 01:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Sitwon/1083871 to your computer and use it in GitHub Desktop.
Save Sitwon/1083871 to your computer and use it in GitHub Desktop.
A mystery...
PKGS= newfileA newfileB
DIRS= a b c
all: $(PKGS)
$(DIRS):
mkdir -p $@
$(PKGS): %: c/%
c/%: b/% | $(DIRS)
cp $< $@
b/%:
$(MAKE) -C a ../$@
all: ../b/newfile
../b/%:
touch $@
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment