just some dumb makefile cleanup
This commit is contained in:
parent
4a783c9a7a
commit
376ef0353f
10
Makefile
10
Makefile
@ -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
|
||||
|
@ -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
|
||||
|
@ -1,7 +1,5 @@
|
||||
# puzzles from http://www.gowrikumar.com/c/
|
||||
|
||||
BINDIR := ../bin
|
||||
|
||||
ALL_BIN := $(patsubst %.c,$(BINDIR)/%,$(wildcard *.c))
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user