blob: a490284020d1ef97919bc4ff1e203e85307a67df (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
TOP= ..
PGENDIR= $(TOP)/Parser
PGEN= $(PGENDIR)/pgen
DESTH= $(TOP)/Include/graminit.h
DESTC= $(TOP)/Python/graminit.c
all: install
# This target is used by the master Makefile to add the objects to the library
add2lib:
install: $(DESTH) $(DESTC)
depend:
$(DESTH): graminit.h
cp graminit.h $(DESTH)
$(DESTC): graminit.c
cp graminit.c $(DESTC)
graminit.c graminit.h: $(PGEN) Grammar
$(PGEN) Grammar
$(PGEN):
cd $(PGENDIR); make pgen
clean:
-rm -f *.o core *~ [@,#]* *.old *.orig *.rej
-rm -f graminit.[ch]
clobber: clean
-rm -f tags TAGS
|