mirror of
https://github.com/python/cpython.git
synced 2024-11-28 16:45:42 +01:00
9f6e6c63ef
This closes patch: http://sourceforge.net/patch/index.php?func=detailpatch&patch_id=101176&group_id=5470
34 lines
565 B
Makefile
34 lines
565 B
Makefile
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
|