summaryrefslogtreecommitdiffstats
path: root/Grammar
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1993-12-24 10:36:57 (GMT)
committerGuido van Rossum <guido@python.org>1993-12-24 10:36:57 (GMT)
commit6fa6343f0e0837314ee86515804b3f3cd5945cbb (patch)
tree566b9a5a3ba9f58f97c5537e78fdea9c458f4c2c /Grammar
parent60a578aa4e8fa37a562d24870eb921719d4a6c9b (diff)
downloadcpython-6fa6343f0e0837314ee86515804b3f3cd5945cbb.zip
cpython-6fa6343f0e0837314ee86515804b3f3cd5945cbb.tar.gz
cpython-6fa6343f0e0837314ee86515804b3f3cd5945cbb.tar.bz2
None
Diffstat (limited to 'Grammar')
-rw-r--r--Grammar/Makefile28
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