diff options
Diffstat (limited to 'Grammar/Makefile')
-rw-r--r-- | Grammar/Makefile | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/Grammar/Makefile b/Grammar/Makefile new file mode 100644 index 0000000..a48bbdb --- /dev/null +++ b/Grammar/Makefile @@ -0,0 +1,28 @@ +TOP= .. +PGENDIR= $(TOP)/Parser +PGEN= $(PGENDIR)/pgen +DESTH= $(TOP)/Py/graminit.h +DESTC= $(TOP)/Python/graminit.c + +all: install + +install: $(DESTH) $(DESTC) + +$(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 |