Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1 | MAKE= make |
| 2 | |
| 3 | SUBDIRS= Parser Grammar Objects Python |
Guido van Rossum | 6085e32 | 1993-12-26 18:24:40 +0000 | [diff] [blame] | 4 | SUBDIRSTOO= Include Extensions readline |
| 5 | DISTFILES= README Makefile configure configure.in |
| 6 | DIST= $(DISTFILES) $(SUBDIRS) $(SUBDIRSTOO) |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 7 | |
| 8 | all: config.status |
Guido van Rossum | 810a92f | 1993-12-28 19:39:56 +0000 | [diff] [blame] | 9 | for i in $(SUBDIRS); do \ |
| 10 | (echo $$i; cd $$i; $(MAKE) all); \ |
| 11 | done |
| 12 | |
| 13 | tags: ctags -t Parser/*.[ch] Objects/*.[ch] Python/*.[ch] Include/*.h |
| 14 | |
| 15 | TAGS: etags -t Parser/*.[ch] Objects/*.[ch] Python/*.[ch] Include/*.h |
| 16 | |
| 17 | depend: |
| 18 | for i in $(SUBDIRS); do \ |
| 19 | (echo $$i; cd $$i; $(MAKE) depend); \ |
| 20 | done |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 21 | |
| 22 | localclean: |
| 23 | -rm -f core *~ [@,#]* *.old *.orig *.rej |
Guido van Rossum | 6085e32 | 1993-12-26 18:24:40 +0000 | [diff] [blame] | 24 | -(cd Include; rm -f core *~ [@,#]* *.old *.orig *.rej) |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 25 | |
| 26 | clean: localclean |
| 27 | -for i in $(SUBDIRS); do \ |
Guido van Rossum | 810a92f | 1993-12-28 19:39:56 +0000 | [diff] [blame] | 28 | (echo $$i; cd $$i; $(MAKE) clean); \ |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 29 | done |
| 30 | |
Guido van Rossum | 810a92f | 1993-12-28 19:39:56 +0000 | [diff] [blame] | 31 | localclobber: localclean |
| 32 | -rm -f tags TAGS config.status |
| 33 | |
| 34 | clobber: localclobber |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 35 | -for i in $(SUBDIRS); do \ |
Guido van Rossum | 810a92f | 1993-12-28 19:39:56 +0000 | [diff] [blame] | 36 | (echo $$i; cd $$i; $(MAKE) clobber); \ |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 37 | done |
| 38 | |
| 39 | distclean: 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 Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 45 | |
| 46 | Makefiles: config.status |
| 47 | ./config.status |
| 48 | |
| 49 | config.status: configure |
| 50 | ./configure |
| 51 | |
| 52 | configure: configure.in |
| 53 | autoconf |
| 54 | |
Guido van Rossum | 6085e32 | 1993-12-26 18:24:40 +0000 | [diff] [blame] | 55 | tar: dist.tar.Z |
| 56 | |
| 57 | dist.tar.Z: $(DIST) |
| 58 | tar cf - $(DIST) | compress >dist.tar.Z |