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 := CD = cd
export DEBUG RM = rm -v
export CD RM
all: all:
cd gowrikumar && $(MAKE) $(CD) gowrikumar && $(MAKE)
clean: clean:
cd gowrikumar && $(MAKE) clean $(CD) gowrikumar && $(MAKE) clean
.PHONY: all clean .PHONY: all clean

View File

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

View File

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