Guido van Rossum | 6fa6343 | 1993-12-24 10:36:57 +0000 | [diff] [blame^] | 1 | TOP= .. |
| 2 | PGENDIR= $(TOP)/Parser |
| 3 | PGEN= $(PGENDIR)/pgen |
| 4 | DESTH= $(TOP)/Py/graminit.h |
| 5 | DESTC= $(TOP)/Python/graminit.c |
| 6 | |
| 7 | all: install |
| 8 | |
| 9 | install: $(DESTH) $(DESTC) |
| 10 | |
| 11 | $(DESTH): graminit.h |
| 12 | cp graminit.h $(DESTH) |
| 13 | |
| 14 | $(DESTC): graminit.c |
| 15 | cp graminit.c $(DESTC) |
| 16 | |
| 17 | graminit.c graminit.h: $(PGEN) Grammar |
| 18 | $(PGEN) Grammar |
| 19 | |
| 20 | $(PGEN): |
| 21 | cd $(PGENDIR); make pgen |
| 22 | |
| 23 | clean: |
| 24 | -rm -f *.o core *~ [@,#]* *.old *.orig *.rej |
| 25 | -rm -f graminit.[ch] |
| 26 | |
| 27 | clobber: clean |
| 28 | -rm -f tags TAGS |