Created
June 12, 2012 20:34
-
-
Save t-mart/2919961 to your computer and use it in GitHub Desktop.
my thang
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ERROR=-Wall -Werror -Wextra -pedantic | |
STANDARD=-std=c++0x | |
CC=g++ | |
#implying this is where main is | |
OUTFILE=$(shell basename $(shell pwd)) | |
BUILDFILES=$(shell ls -R | grep "\.cpp") | |
all: run | |
build: | |
$(CC) $(STANDARD) $(ERROR) $(BUILDFILES) -o $(OUTFILE) | |
run: build | |
./$(OUTFILE) | |
ctags: | |
ctags -R --c++-kinds=+p --fields=+iaS --extra=+q -I . | |
archive: | |
tar acvf $(OUTFILE).tim_martin.tar.gz $(shell git ls-files | grep -v ".gitignore") | |
zip: | |
zip $(OUTFILE).tim_martin.zip $(shell git ls-files | grep -v ".gitignore") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment