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

Commit 3f11f56

Browse files
committed
Revert Makefile to last sane version. Closes #13.
1 parent 6314594 commit 3f11f56

File tree

1 file changed

+2
-11
lines changed

1 file changed

+2
-11
lines changed

Makefile

+2-11
Original file line numberDiff line numberDiff line change
@@ -25,15 +25,6 @@ uninstall : .FORCE
2525

2626
greg.o : greg.c
2727

28-
# bootstrap greg from greg.g
29-
greg.c : greg.g compile.c tree.c
30-
test -f greg && ./greg -o greg-new.c greg.g
31-
$(CC) $(CFLAGS) -o greg-new greg-new.c $(OBJS)
32-
./greg-new -o greg-new.c greg.g
33-
$(CC) $(CFLAGS) -o greg-new greg-new.c $(OBJS)
34-
mv greg-new.c greg.c
35-
mv greg-new greg
36-
3728
grammar : .FORCE
3829
./greg -o greg.c greg.g
3930

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

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

55-
run: greg
46+
run: greg.g greg
5647
mkdir -p selftest
5748
./greg -o testing1.c greg.g
5849
$(CC) $(CFLAGS) -o selftest/testing1 testing1.c $(OBJS)

0 commit comments

Comments
 (0)