File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11MAKE = make
22
33SUBDIRS = Parser Grammar Objects Python
4+ SUBDIRSTOO = Include Extensions readline
5+ DISTFILES = README Makefile configure configure.in
6+ DIST = $(DISTFILES ) $(SUBDIRS ) $(SUBDIRSTOO )
47
58all : config.status
69 for i in $( SUBDIRS) ; do (echo $$ i; cd $$ i; $( MAKE) all); done
710
811localclean :
912 -rm -f core * ~ [@,# ]* *.old *.orig *.rej
10- -(cd Py ; rm -f core * ~ [@,# ]* *.old *.orig *.rej)
13+ -(cd Include ; rm -f core * ~ [@,# ]* *.old *.orig *.rej)
1114
1215clean : localclean
1316 -for i in $(SUBDIRS ) ; do \
@@ -36,3 +39,7 @@ config.status: configure
3639configure : configure.in
3740 autoconf
3841
42+ tar : dist.tar.Z
43+
44+ dist.tar.Z : $(DIST )
45+ tar cf - $(DIST ) | compress > dist.tar.Z
Original file line number Diff line number Diff line change @@ -25,10 +25,12 @@ done so.)
2525
2626 make
2727
28- This will recursively run Make in each of the Parser, Objects and
29- Python subdirectories. In Parser it builds an executable "pgen" and a
30- library libParser.a. In Objects it builds a library libObjects.a. In
31- Python it builds a library libPython.a and an executable "python".
28+ This will recursively run Make in each of the Parser, Grammar, Objects
29+ and Python subdirectories. In Parser it builds an executable "pgen"
30+ and a library libParser.a. In Grammar it runs Parser/pgen to generate
31+ graminit.[ch] which are copied to Includes and Python, respectively.
32+ In Objects it builds a library libObjects.a. In Python it builds a
33+ library libPython.a and an executable "python".
3234
3335(3) Test the resulting executable:
3436
Original file line number Diff line number Diff line change @@ -96,7 +96,7 @@ compile='${CC-cc} $CFLAGS conftest.c -o conftest $LIBS >/dev/null 2>&1'
9696
9797# A filename unique to this package, relative to the directory that
9898# configure is in, which we can look for to find out if srcdir is correct.
99- unique_file=Py /object.h
99+ unique_file=Include /object.h
100100
101101# Find the source files, if location was not specified.
102102if test -z "$srcdir"; then
Original file line number Diff line number Diff line change 11dnl Process this file with autoconf to produce a configure script.
22
3- AC_INIT(Py /object.h)
3+ AC_INIT(Include /object.h)
44
55# checks for alternative programs
66AC_PROG_CC
You can’t perform that action at this time.
0 commit comments