just some dumb makefile cleanup
This commit is contained in:
parent
4a783c9a7a
commit
376ef0353f
10
Makefile
10
Makefile
@ -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
|
||||||
|
@ -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
|
||||||
|
@ -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))
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user