Skip to content
This repository has been archived by the owner on Jul 26, 2018. It is now read-only.

Commit

Permalink
Revert Makefile to last sane version. Closes #13.
Browse files Browse the repository at this point in the history
  • Loading branch information
nddrylliog committed Sep 6, 2013
1 parent 6314594 commit 3f11f56
Showing 1 changed file with 2 additions and 11 deletions.
13 changes: 2 additions & 11 deletions Makefile
Expand Up @@ -25,15 +25,6 @@ uninstall : .FORCE

greg.o : greg.c

# bootstrap greg from greg.g
greg.c : greg.g compile.c tree.c
test -f greg && ./greg -o greg-new.c greg.g
$(CC) $(CFLAGS) -o greg-new greg-new.c $(OBJS)
./greg-new -o greg-new.c greg.g
$(CC) $(CFLAGS) -o greg-new greg-new.c $(OBJS)
mv greg-new.c greg.c
mv greg-new greg

grammar : .FORCE
./greg -o greg.c greg.g

Expand All @@ -49,10 +40,10 @@ samples/calc.c: samples/calc.leg greg
samples/calc: samples/calc.c
$(CC) $(CFLAGS) -o $@ $<

test: samples/calc run
test: samples/calc greg-testing
echo '21 * 2 + 0' | ./samples/calc | grep 42

run: greg
run: greg.g greg
mkdir -p selftest
./greg -o testing1.c greg.g
$(CC) $(CFLAGS) -o selftest/testing1 testing1.c $(OBJS)
Expand Down

0 comments on commit 3f11f56

Please sign in to comment.