Sjoerd Mullender | 59bb080 | 2000-08-17 11:38:18 +0000 | [diff] [blame] | 1 | # NOTE: Makefile.in is converted into Makefile by the configure script |
| 2 | # in the parent directory. Once configure has run, you can recreate |
| 3 | # the Makefile by running just config.status. |
| 4 | |
Fred Drake | 0cdfc92 | 2000-09-28 20:53:39 +0000 | [diff] [blame] | 5 | # === Variables set by config.status === |
Sjoerd Mullender | 59bb080 | 2000-08-17 11:38:18 +0000 | [diff] [blame] | 6 | |
| 7 | VERSION= @VERSION@ |
| 8 | |
| 9 | srcdir= @srcdir@ |
| 10 | VPATH= @srcdir@ |
| 11 | |
| 12 | CC= @CC@ |
| 13 | RANLIB= @RANLIB@ |
| 14 | AR= @AR@ |
| 15 | |
| 16 | DEFS= @DEFS@ |
| 17 | LIBS= @LIBS@ |
| 18 | |
| 19 | |
| 20 | # === Fixed definitions === |
| 21 | |
| 22 | TOP= .. |
| 23 | PGENDIR= $(TOP)/Parser |
| 24 | PGEN= $(PGENDIR)/pgen |
| 25 | DESTH= $(srcdir)/$(TOP)/Include/graminit.h |
| 26 | DESTC= $(srcdir)/$(TOP)/Python/graminit.c |
| 27 | |
| 28 | all: install |
| 29 | |
| 30 | # This target is used by the master Makefile to add the objects to the library |
| 31 | add2lib: |
| 32 | |
| 33 | install: $(DESTH) $(DESTC) |
| 34 | |
| 35 | depend: |
| 36 | |
| 37 | $(DESTH): graminit.h |
| 38 | cp graminit.h $(DESTH) |
| 39 | |
| 40 | $(DESTC): graminit.c |
| 41 | cp graminit.c $(DESTC) |
| 42 | |
| 43 | graminit.c graminit.h: $(PGEN) Grammar |
| 44 | $(PGEN) $(srcdir)/Grammar |
| 45 | |
| 46 | $(PGEN): |
| 47 | cd $(PGENDIR); $(MAKE) pgen |
| 48 | |
| 49 | clean: |
| 50 | -rm -f *.o core *~ [@,#]* *.old *.orig *.rej |
| 51 | -rm -f graminit.[ch] |
| 52 | |
| 53 | clobber: clean |
| 54 | -rm -f tags TAGS |