just some dumb makefile cleanup

This commit is contained in:
Dan Buch 2011-06-18 14:07:11 -04:00
parent 4a783c9a7a
commit 376ef0353f
3 changed files with 10 additions and 9 deletions

View File

@ -1,12 +1,14 @@
DEBUG :=
export DEBUG
CD = cd
RM = rm -v
export CD RM
all:
cd gowrikumar && $(MAKE)
$(CD) gowrikumar && $(MAKE)
clean:
cd gowrikumar && $(MAKE) clean
$(CD) gowrikumar && $(MAKE) clean
.PHONY: all clean

View File

@ -1,13 +1,14 @@
BINDIR := ./bin
# puzzles from http://www.gowrikumar.com/c/
BINDIR := $(PWD)/bin
export BINDIR
all:
cd src && $(MAKE)
$(CD) src && $(MAKE)
clean:
rm -v $(BINDIR)/*
$(RM) $(BINDIR)/*
.PHONY: all clean

View File

@ -1,7 +1,5 @@
# puzzles from http://www.gowrikumar.com/c/
BINDIR := ../bin
ALL_BIN := $(patsubst %.c,$(BINDIR)/%,$(wildcard *.c))