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