blob: 20a4acbe54322293921013253955241685a54f27 [file] [log] [blame]
Guido van Rossum627b2d71993-12-24 10:39:16 +00001MAKE= make
2
3SUBDIRS= Parser Grammar Objects Python
Guido van Rossum6085e321993-12-26 18:24:40 +00004SUBDIRSTOO= Include Extensions readline
5DISTFILES= README Makefile configure configure.in
6DIST= $(DISTFILES) $(SUBDIRS) $(SUBDIRSTOO)
Guido van Rossum627b2d71993-12-24 10:39:16 +00007
8all: config.status
Guido van Rossum810a92f1993-12-28 19:39:56 +00009 for i in $(SUBDIRS); do \
10 (echo $$i; cd $$i; $(MAKE) all); \
11 done
12
13tags: ctags -t Parser/*.[ch] Objects/*.[ch] Python/*.[ch] Include/*.h
14
15TAGS: etags -t Parser/*.[ch] Objects/*.[ch] Python/*.[ch] Include/*.h
16
17depend:
18 for i in $(SUBDIRS); do \
19 (echo $$i; cd $$i; $(MAKE) depend); \
20 done
Guido van Rossum627b2d71993-12-24 10:39:16 +000021
22localclean:
23 -rm -f core *~ [@,#]* *.old *.orig *.rej
Guido van Rossum6085e321993-12-26 18:24:40 +000024 -(cd Include; rm -f core *~ [@,#]* *.old *.orig *.rej)
Guido van Rossum627b2d71993-12-24 10:39:16 +000025
26clean: localclean
27 -for i in $(SUBDIRS); do \
Guido van Rossum810a92f1993-12-28 19:39:56 +000028 (echo $$i; cd $$i; $(MAKE) clean); \
Guido van Rossum627b2d71993-12-24 10:39:16 +000029 done
30
Guido van Rossum810a92f1993-12-28 19:39:56 +000031localclobber: localclean
32 -rm -f tags TAGS config.status
33
34clobber: localclobber
Guido van Rossum627b2d71993-12-24 10:39:16 +000035 -for i in $(SUBDIRS); do \
Guido van Rossum810a92f1993-12-28 19:39:56 +000036 (echo $$i; cd $$i; $(MAKE) clobber); \
Guido van Rossum627b2d71993-12-24 10:39:16 +000037 done
38
39distclean: clobber
40 -for i in $(SUBDIRS); do \
41 if test -f $$i/Makefile.in; then \
42 rm -f $$i/Makefile; \
43 fi; \
44 done
Guido van Rossum627b2d71993-12-24 10:39:16 +000045
46Makefiles: config.status
47 ./config.status
48
49config.status: configure
50 ./configure
51
52configure: configure.in
53 autoconf
54
Guido van Rossum6085e321993-12-26 18:24:40 +000055tar: dist.tar.Z
56
57dist.tar.Z: $(DIST)
58 tar cf - $(DIST) | compress >dist.tar.Z