1993-12-24 11:36:57 +01:00
|
|
|
TOP= ..
|
|
|
|
PGENDIR= $(TOP)/Parser
|
|
|
|
PGEN= $(PGENDIR)/pgen
|
1993-12-26 19:15:49 +01:00
|
|
|
DESTH= $(TOP)/Include/graminit.h
|
1993-12-24 11:36:57 +01:00
|
|
|
DESTC= $(TOP)/Python/graminit.c
|
|
|
|
|
|
|
|
all: install
|
|
|
|
|
2000-08-16 21:02:06 +02:00
|
|
|
# This target is used by the master Makefile to add the objects to the library
|
|
|
|
add2lib:
|
|
|
|
|
1993-12-24 11:36:57 +01:00
|
|
|
install: $(DESTH) $(DESTC)
|
|
|
|
|
1993-12-28 20:39:13 +01:00
|
|
|
depend:
|
|
|
|
|
1993-12-24 11:36:57 +01:00
|
|
|
$(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
|