Skip to content

Instantly share code, notes, and snippets.

@vderyagin
Created October 12, 2011 08:29
Show Gist options
  • Save vderyagin/1280646 to your computer and use it in GitHub Desktop.
Save vderyagin/1280646 to your computer and use it in GitHub Desktop.
Makefile, that compiles all *.c files in directory, each to separate binary
PROGS = $(patsubst %.c, %, $(wildcard *.c))
all:
make $(PROGS)
clean:
rm -f $(PROGS)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment