--- parser3/src/classes/Makefile.am 2001/05/10 14:00:18 1.8 +++ parser3/src/classes/Makefile.am 2002/02/22 10:11:30 1.38 @@ -1,19 +1,28 @@ -# $Id: Makefile.am,v 1.8 2001/05/10 14:00:18 paf Exp $ +SUBDIRS = gd smtp -SUBDIRS = gd +INCLUDES = -I../types -I../sql -I../pcre -Igd @XML_INCLUDES@ -INCLUDES = -I../include -I../types -I../sql -Igd -I../pcre +noinst_LIBRARIES = libclasses.a +noinst_HEADERS = classes.h xnode.h +libclasses_a_SOURCES = classes.awk double.C file.C form.C image.C int.C mail.C op.C math.C response.C string.C table.C void.C hash.C date.C xnode.C xdoc.C ident.C classes.C -CLASSES_INC=classes.inc +CLASSES_INC_DEPS = *.C -$(CLASSES_INC): $(METHODED) classes.awk - echo "/* do not edit. autogenerated by Makefile.am */" > $(CLASSES_INC) - echo >> $(CLASSES_INC) - ls | $(AWK) -f classes.awk >> $(CLASSES_INC) +classes.inc: classes.awk $(CLASSES_INC_DEPS) Makefile.am + echo "/* do not edit. autogenerated by Makefile.am */" > classes.inc + echo >> classes.inc + ls $(CLASSES_INC_DEPS) | $(AWK) -f classes.awk >> classes.inc +CLEANFILES = classes.inc -METHODED=double.C file.C form.C image.C int.C mail.C op.C random.C response.C string.C table.C unknown.C hash.C +classes.C: classes.inc -noinst_LIBRARIES = libclasses.a -libclasses_a_DEPENDENCES = $(CLASSES_INC) -libclasses_a_SOURCES = classes.C $(METHODED) +IDENT_AWK = $(top_srcdir)/src/ident.awk +IDENT_DEPS = *.awk *.h *.C + +ident.C: $(IDENT_AWK) $(IDENT_DEPS) Makefile.am + rm -f ident.C + echo // do not edit. autogenerated by Makefile.am > ident.C.new + cat $(IDENT_DEPS) | $(AWK) -f $(IDENT_AWK) -v project=classes >> ident.C.new + mv ident.C.new ident.C +EXTRA_DIST = classes.dsp