Skip to content

Commit

Permalink
make bin: such a nice idea, if only reality would cooperate...
Browse files Browse the repository at this point in the history
  • Loading branch information
cpressey committed Sep 6, 2014
1 parent c0bf7af commit 44ef68f
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 11 deletions.
4 changes: 3 additions & 1 deletion .gitignore
@@ -1 +1,3 @@
bin
bin/bef
bin/befprof
bin/bef2c
4 changes: 3 additions & 1 deletion .hgignore
@@ -1,3 +1,5 @@
syntax: glob

bin
bin/bef
bin/befprof
bin/bef2c
15 changes: 6 additions & 9 deletions Makefile
Expand Up @@ -4,6 +4,7 @@ PROGS=bin/bef$(EXE) bin/befprof$(EXE) bin/bef2c$(EXE)
CC?=gcc
O?=.o
EXE?=
RM_F?=rm -f

WARNS= -W -Wall -Wstrict-prototypes -Wmissing-prototypes \
-Wpointer-arith -Wno-uninitialized -Wreturn-type -Wcast-qual \
Expand All @@ -24,21 +25,17 @@ endif

all: $(PROGS)

bin/.exists:
mkdir -p bin
touch bin/.exists

bin/bef: bin/.exists src/bef.c
bin/bef: src/bef.c
$(CC) $(CFLAGS) src/bef.c -o bin/bef

bin/befprof: bin/.exists src/befprof.c
bin/befprof: src/befprof.c
$(CC) $(CFLAGS) src/befprof.c -o bin/befprof

bin/bef2c: bin/.exists src/bef2c.c
bin/bef2c: src/bef2c.c
$(CC) $(CFLAGS) src/bef2c.c -o bin/bef2c

clean:
rm -f *.o src/*.o
$(RM_F) *.o src/*.o

distclean:
rm -rf bin/*
$(RM_F) $(PROGS)
1 change: 1 addition & 0 deletions bin/README.txt
@@ -0,0 +1 @@
This directory is where compiled executables will be placed.

0 comments on commit 44ef68f

Please sign in to comment.