Skip to content

Instantly share code, notes, and snippets.

@t-mart
Created June 12, 2012 20:34
Show Gist options
  • Save t-mart/2919961 to your computer and use it in GitHub Desktop.
Save t-mart/2919961 to your computer and use it in GitHub Desktop.
my thang
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