summaryrefslogtreecommitdiff
path: root/Grammar
diff options
context:
space:
mode:
authorSjoerd Mullender <sjoerd@acm.org>2000-08-17 11:38:18 +0000
committerSjoerd Mullender <sjoerd@acm.org>2000-08-17 11:38:18 +0000
commit59bb0800dfa75cc8ee4657926cc5b7cf2c66f3e4 (patch)
tree33101fd8c1552223dc681b3614cb7f3e706a4d19 /Grammar
parent227b1204681a8bd7077bf1f8e9098b7e2e9f4c13 (diff)
downloadcpython-git-59bb0800dfa75cc8ee4657926cc5b7cf2c66f3e4.tar.gz
Fix up problems when compiling in a directory other than the source
directory.
Diffstat (limited to 'Grammar')
-rw-r--r--Grammar/Makefile33
-rw-r--r--Grammar/Makefile.in54
2 files changed, 54 insertions, 33 deletions
diff --git a/Grammar/Makefile b/Grammar/Makefile
deleted file mode 100644
index a490284020..0000000000
--- a/Grammar/Makefile
+++ /dev/null
@@ -1,33 +0,0 @@
-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
diff --git a/Grammar/Makefile.in b/Grammar/Makefile.in
new file mode 100644
index 0000000000..81214091cb
--- /dev/null
+++ b/Grammar/Makefile.in
@@ -0,0 +1,54 @@
+# NOTE: Makefile.in is converted into Makefile by the configure script
+# in the parent directory. Once configure has run, you can recreate
+# the Makefile by running just config.status.
+
+# === Variables set by config.stat ===
+
+VERSION= @VERSION@
+
+srcdir= @srcdir@
+VPATH= @srcdir@
+
+CC= @CC@
+RANLIB= @RANLIB@
+AR= @AR@
+
+DEFS= @DEFS@
+LIBS= @LIBS@
+
+
+# === Fixed definitions ===
+
+TOP= ..
+PGENDIR= $(TOP)/Parser
+PGEN= $(PGENDIR)/pgen
+DESTH= $(srcdir)/$(TOP)/Include/graminit.h
+DESTC= $(srcdir)/$(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) $(srcdir)/Grammar
+
+$(PGEN):
+ cd $(PGENDIR); $(MAKE) pgen
+
+clean:
+ -rm -f *.o core *~ [@,#]* *.old *.orig *.rej
+ -rm -f graminit.[ch]
+
+clobber: clean
+ -rm -f tags TAGS