Skip to content

Instantly share code, notes, and snippets.

@wrosecrans
Created August 30, 2018 22:39
Show Gist options
  • Save wrosecrans/07bb46dbf37cb84a87d3e538b7e19001 to your computer and use it in GitHub Desktop.
Save wrosecrans/07bb46dbf37cb84a87d3e538b7e19001 to your computer and use it in GitHub Desktop.
make autobuilds Makefile.cpp
will@Tower:~/experiment$ ls
some.cpp
will@Tower:~/experiment$ make
make: *** No targets specified and no makefile found. Stop.
will@Tower:~/experiment$ make some
g++ some.cpp -o some
will@Tower:~/experiment$ rm some
will@Tower:~/experiment$ mv some.cpp Makefile.cpp
will@will-Precision-Tower-5810:~/projects/experiment$ make
g++ Makefile.cpp -o Makefile
Makefile:1: warning: NUL character seen; rest of line ignored
Makefile:1: *** missing separator. Stop.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment