head	1.24;
access;
symbols;
locks
	krisrose:1.24; strict;
comment	@# @;


1.24
date	99.12.09.16.48.35;	author krisrose;	state Exp;
branches;
next	1.23;

1.23
date	99.12.09.16.18.39;	author krisrose;	state Exp;
branches;
next	1.22;

1.22
date	99.12.09.08.28.36;	author krisrose;	state Exp;
branches;
next	1.21;

1.21
date	99.12.09.08.22.01;	author krisrose;	state Exp;
branches;
next	1.20;

1.20
date	99.12.09.04.13.53;	author krisrose;	state Exp;
branches;
next	1.19;

1.19
date	99.12.09.04.01.51;	author krisrose;	state Exp;
branches;
next	1.18;

1.18
date	99.12.06.21.08.09;	author krisrose;	state Exp;
branches;
next	1.17;

1.17
date	99.12.03.23.24.40;	author krisrose;	state Exp;
branches;
next	1.16;

1.16
date	99.12.03.02.08.56;	author krisrose;	state Exp;
branches;
next	1.15;

1.15
date	99.12.01.03.41.19;	author krisrose;	state Exp;
branches;
next	1.14;

1.14
date	99.11.30.18.28.23;	author krisrose;	state Exp;
branches;
next	1.13;

1.13
date	99.11.29.16.09.02;	author krisrose;	state Exp;
branches;
next	1.12;

1.12
date	99.11.25.18.42.03;	author krisrose;	state Exp;
branches;
next	1.11;

1.11
date	99.11.25.03.01.47;	author krisrose;	state Exp;
branches;
next	1.10;

1.10
date	99.11.24.16.59.28;	author krisrose;	state Exp;
branches;
next	1.9;

1.9
date	99.11.24.16.46.57;	author krisrose;	state Exp;
branches;
next	1.8;

1.8
date	99.11.23.17.28.07;	author krisrose;	state Exp;
branches;
next	1.7;

1.7
date	99.11.23.15.56.00;	author krisrose;	state Exp;
branches;
next	1.6;

1.6
date	99.11.23.10.27.04;	author krisrose;	state Exp;
branches;
next	1.5;

1.5
date	99.11.23.10.10.36;	author krisrose;	state Exp;
branches;
next	1.4;

1.4
date	99.11.23.09.32.31;	author krisrose;	state Exp;
branches;
next	1.3;

1.3
date	99.11.23.04.03.05;	author krisrose;	state Exp;
branches;
next	1.2;

1.2
date	99.11.22.18.41.48;	author krisrose;	state Exp;
branches;
next	1.1;

1.1
date	99.10.26.16.17.46;	author krisrose;	state Exp;
branches;
next	;


desc
@@


1.24
log
@Oops: DATADIR for skel etc. fixed.
@
text
@# Make(1) rules for FleXML XML processor generator system.
# Copyright  1999 Kristoffer Rose.  All rights reserved.
#
# This file is part of the FleXML XML processor generator system.
# Copyright  1999 Kristoffer Rose.  All rights reserved.
#
# This program is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by the Free
# Software Foundation; either version 2 of the License, or (at your option)
# any later version.
#
# This program is distributed in the hope that it will be useful, but WITHOUT
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
# FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for
# more details.
#
# You should have received a copy of the GNU General Public License along
# with this program; if not, write to the Free Software Foundation, Inc., 59
# Temple Place, Suite 330, Boston, MA 02111-1307 USA.

# $Id: Makefile,v 1.23 1999/12/09 16:18:39 krisrose Exp $

# FILES.

SRC =	GPL Makefile README paper.html \
	flexml.pl skel flexml-act-bootstrap.c flexml-act.dtd \
	my.dtd my-show.act my-joke.xml my-joke2.xml my-joke3.xml

BINS =	flexml
LIBS =	flexml-act
DATA =	skel
MANS =	flexml.1
DOCS =	flexml-act.dtd FleXML.html flexml.html paper.html
SAMPS =	my.dtd my-show.act my-joke.xml my-joke2.xml my-joke3.xml \
	tricky.dtd tricky.act tricky.xml \
	test.html

ALL =	$(PROGS) $(LIBS) $(DATA) $(MANS) $(DOCS) $(SAMPS)

# SETUP.

# Installation paths
USR = /usr
BINDIR = $(USR)/bin
LIBDIR = $(USR)/lib
SHARE = /usr/share
MAN1DIR = $(SHARE)/man/man1
DOCDIR = $(SHARE)/doc
DATADIR = $(SHARE)/flexml
TMPDIR = /var/tmp

# Permanent program locations
PERL = /usr/bin/perl
FLEX = /usr/bin/flex
FLEXML = $(BINDIR)/flexml
ACT = $(LIBDIR)/flexml-act
SKEL = $(DATADIR)/skel

# Build compilation setup.
CC = gcc -Wall -ansi -pedantic
CFLAGS = -O2 -g
#FLEXDEBUG = -d

# Web location.

WEBHOME = info:public_html
FTPHOME = info:public_html/ftp/FleXML

# PRIMARY TARGETS.

.PHONY:		all install clean test dist

all:		$(ALL)

install:	$(ALL)
	mkdir -p $(DESTDIR)$(BINDIR) $(DESTDIR)$(LIBDIR) \
		$(DESTDIR)$(MAN1DIR) $(DESTDIR)$(DOCDIR) \
		$(DESTDIR)$(DATADIR) \
		$(DESTDIR)$(DOCDIR)/flexml/examples
	install -m555 $(BINS) $(DESTDIR)$(BINDIR)/
	install -m555 $(LIBS) $(DESTDIR)$(LIBDIR)/
	install -m444 $(DATA) $(DESTDIR)$(DATADIR)/
	install -m444 $(MANS) $(DESTDIR)$(MAN1DIR)/
	install -m444 $(DOCS) $(DESTDIR)$(DOCDIR)/flexml/
	install -m444 $(SAMPS) $(DESTDIR)$(DOCDIR)/flexml/examples/

test::		all
clean::; $(RM) *.[olh1] *-dummy.? lex.* *~ ./#*

dist:		clean
	rsync -v FleXML.html $(WEBHOME)/FleXML.html
	rsync -va --cvs-exclude --delete-excluded ./ $(FTPHOME)/

# DEFAULT RULES.

# Generate C source from flex scanner.
%.c: 		%.l
	$(FLEX) -Bsv $(FLEXDEBUG) -o$@@ $<

# Direct generation of stand-alone XML processor+application.
# Note: The dependency must be of the form "appl.l: appl.act proc.dtd".
%.l:		%.act
	./flexml.pl $(FLEXDEBUG) -vA -a $^

# Generate XML processor to link with application.
%.l %.h:	%.dtd
	./flexml.pl $(FLEXDEBUG) -v -s skel $<

# Generate XML application C source to compile and link with processor.
# Note: The dependency must be of the form "appl.c: appl.act proc.dtd".
%.c:		%.act
	./flexml.pl $(FLEXDEBUG) -vD -a $^


# MAIN PROGRAM.

clean::; $(RM) flexml flexml-act flexml-act.c

flexml:		flexml.pl
	sed -e "s;^[#][!].*perl;#!$(PERL);" \
	    -e "s;[.][/]flexml-act;$(ACT);g" \
	    -e "s;[.][/]skel;$(SKEL);g" \
	    -e "s;/var/tmp;$(TMPDIR);g" \
	    -e "s;/usr/share/doc/;$(DOCDIR)/;g" flexml.pl >flexml
	chmod +x flexml

# Action language...
flexml-act.l:		flexml-act.dtd
	./flexml.pl $(FLEXDEBUG) -Lv -ractions -s skel $<

flexml-act.c:		flexml-act.l
	$(FLEX) -Bsv -oflexml-act.c flexml-act.l

flexml-act.o:		flexml-act.c flexml-act.h
flexml-act-bootstrap.o:	flexml-act-bootstrap.c flexml-act.h
flexml-act:		flexml-act.o flexml-act-bootstrap.o

clean::; $(RM) TAGS
TAGS: 	$(SRC);	etags $(SRC)
ci:	$(SRC);	ci -u $(SRC)

# DOCUMENTS.

clean::; $(RM) flexml.html pod2html-*

flexml.1:	flexml
	pod2man flexml >flexml.1

flexml.html:	flexml
	pod2html <flexml >flexml.html

# TESTS.

# Example: LINK processor with application:

my.l my.h:	my.dtd
my.c:		my.l
my.o:		my.c my.h

my-show.c:	my-show.act my.dtd
my-show.o:	my-show.c my.h
my-show:	my-show.o my.o

test::		my-show
	./my-show <my-joke.xml && echo OK
	./my-show <my-joke2.xml && echo OK
	./my-show <my-joke3.xml || echo OK

clean::; $(RM) my.c my-show my-show.c my-dummy my-dummy.c

# Example: COMPILE processor into application

tricky.l:	tricky.act tricky.dtd
tricky.c:	tricky.l
tricky.o:	tricky.c
tricky:		tricky.o

test::		tricky
	./tricky <tricky.xml

clean::; $(RM) tricky.[lco] tricky

# Complex example: application to print XHTML <a href=...> values.
# XHTML is big, so...we must use a patched flex (included in Debian).


xhtml1-transitional.dtd:
	wget 'http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd'

xhtml1-transitional.l xhtml1-transitional.h: xhtml1-transitional.dtd
	./flexml.pl $(FLEXDEBUG) -sskel -rhtml \
		-p '-//IETF//DTD XHTML 1.0 Transitional//EN' \
		-u 'http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd' \
		xhtml1-transitional.dtd

xhtml1-transitional.c:	xhtml1-transitional.l
	$(FLEX) -Bsv -Ca -oxhtml1-transitional.c xhtml1-transitional.l

xhtml1-transitional.o:	xhtml1-transitional.c xhtml1-transitional.h

xhtml-href.c:	xhtml-href.act xhtml1-transitional.dtd
xhtml-href.o:	xhtml-href.c xhtml1-transitional.h
xhtml-href:	xhtml-href.o xhtml1-transitional.o

#test::		xhtml-href
#	./xhtml-href <test.html

clean::; $(RM) xhtml1-*.[lhco] xhtml-href.[co] xhtml-href

# END.

test::;	@@echo "Done testing."
@


1.23
log
@Released for Debian.
@
text
@d21 1
a21 1
# $Id: Makefile,v 1.22 1999/12/09 08:28:36 krisrose Exp krisrose $
d49 1
d57 1
a57 1
SKEL = $(SHARE)/flexml/skel
d78 1
a78 1
		$(DESTDIR)$(SHARE)/flexml/skel \
d82 1
a82 1
	install -m444 $(DATA) $(DESTDIR)$(SHARE)/flexml/skel
@


1.22
log
@Dist to info!
@
text
@d21 1
a21 1
# $Id: Makefile,v 1.21 1999/12/09 08:22:01 krisrose Exp krisrose $
d33 1
a33 1
DOCS =	flexml-act.dtd paper.html
d97 1
a97 1
	$(FLEX) -Bs $(FLEXDEBUG) -o$@@ $<
d102 1
a102 1
	./flexml.pl $(FLEXDEBUG) -A -a $^
d106 1
a106 1
	./flexml.pl $(FLEXDEBUG) -SH -s skel $<
d111 1
a111 1
	./flexml.pl $(FLEXDEBUG) -D -a $^
d128 1
a128 1
	./flexml.pl $(FLEXDEBUG) -L -ractions -s skel $<
d131 1
a131 1
	$(FLEX) -Bs -oflexml-act.c flexml-act.l
d185 5
a189 1
xhtml1-transitional.l xhtml1-transitional.h:
d191 3
a193 2
		-p'-//IETF//DTD XHTML 1.0 Transitional//EN' \
		'http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd'
@


1.21
log
@Oops: tricky stopped working...holding...
@
text
@d21 1
a21 1
# $Id: Makefile,v 1.20 1999/12/09 04:13:53 krisrose Exp krisrose $
d65 1
a65 1
WEBHOME = info:public_html/
d90 2
a91 2
	rsync -va FleXML.html $(WEBHOME)/FleXML.html
	rsync -va ./ $(FTPHOME)/
@


1.20
log
@Don't be verbose [sic].
@
text
@d21 1
a21 1
# $Id: Makefile,v 1.19 1999/12/09 04:01:51 krisrose Exp krisrose $
d63 5
d70 1
a70 1
.PHONY:		all install clean test
d88 4
@


1.19
log
@Ready for Xtech2000 submission.
@
text
@d21 1
a21 1
# $Id: Makefile,v 1.18 1999/12/06 21:08:09 krisrose Exp krisrose $
d88 1
a88 1
	$(FLEX) -Bsv $(FLEXDEBUG) -o$@@ $<
d93 1
a93 1
	./flexml.pl $(FLEXDEBUG) -vA -a $^
d97 1
a97 1
	./flexml.pl $(FLEXDEBUG) -vSH -s skel $<
d102 1
a102 1
	./flexml.pl $(FLEXDEBUG) -vD -a $^
d119 1
a119 1
	./flexml.pl $(FLEXDEBUG) -vL -ractions -s skel $<
d122 1
a122 1
	$(FLEX) -Bsv -oflexml-act.c flexml-act.l
@


1.18
log
@Releasing.
@
text
@d21 1
a21 1
# $Id: Makefile,v 1.17 1999/12/03 23:24:40 krisrose Exp krisrose $
d27 1
a27 1
	my.dtd my-show.act my-joke.xml
d33 4
a36 3
DOCS =	flexml.html flexml-act.dtd
SAMPS =	my.dtd my-show.act my-joke.xml \
	tricky.dtd tricky.act tricky.xml
d49 1
d65 1
a65 1
.PHONY:		all install clean
d81 1
d113 1
d140 3
a142 1
	pod2html flexml >flexml.html
d150 1
a150 1
my-show.l:	my-show.act my.dtd
d154 5
a160 6
# ./flexml.pl -XA -amy-show.act my.dtd
# && flex -Bsv -omy-show.c my-show.l
# && cc -omy-show my-show.c
# && ./my-show <./my-joke.xml
# && echo OK

d168 3
d176 13
a188 2
xhtml.l xhtml.h: xhtml.dtd
	./flexml.pl $(FLEXDEBUG) -v -rhtml -p'-//IETF//DTD HTML//EN' -s skel $<
d190 2
a191 2
xhtml.c:	xhtml.l
	$(FLEX) -Bsv -Ca -oxhtml.c xhtml.l
d193 1
a193 1
xhtml.o:	xhtml.c xhtml.h
d195 1
a195 3
xhtml-href.c:	xhtml-href.act xhtml.dtd
xhtml-href.o:	xhtml-href.c xhtml.h
xhtml-href:	xhtml-href.o xhtml.o
d197 1
a197 1
clean::; $(RM) xhtml.[lhco] xhtml-href.[co] xhtml-href
@


1.17
log
@Can now generate validating processors for XHTML!
@
text
@d21 1
a21 1
# $Id: Makefile,v 1.16 1999/12/03 02:08:56 krisrose Exp krisrose $
d85 1
a85 1
	$(FLEX) -Bs $(FLEXDEBUG) -o$@@ $<
d90 1
a90 1
	./flexml.pl $(FLEXDEBUG) -A -a $^
d94 1
a94 1
	./flexml.pl $(FLEXDEBUG) -SH -s skel $<
d99 1
a99 1
	./flexml.pl $(FLEXDEBUG) -D -a $^
d115 1
a115 1
	./flexml.pl -L -ractions -s skel $<
d118 1
a118 1
	$(FLEX) -Bs -oflexml-act.c flexml-act.l
d138 1
a138 3
# TESTS...

# LINK processor with application:
d156 1
a156 1
# COMPILE processor into application
d166 1
a166 1
# XHTML is big, so...we must use a patched flex*.
d169 1
a169 1
	./flexml.pl -rhtml -p'-//IETF//DTD HTML//EN' -s skel $<
d174 1
a174 1
xhtml.o:	xhtml.c my.h
@


1.16
log
@Compiles xhtml.dtd!
@
text
@d21 1
a21 1
# $Id: Makefile,v 1.15 1999/12/01 03:41:19 krisrose Exp krisrose $
d65 1
a65 1
all:		flexml.bootstrap $(ALL)
d67 1
a67 1
install:	flexml.bootstrap $(ALL)
d85 1
a85 1
	$(FLEX) -sB -ppb $(FLEXDEBUG) -o$@@ $<
d90 1
a90 1
	./flexml.bootstrap $(FLEXDEBUG) -A -a $^
d94 1
a94 1
	./flexml.bootstrap $(FLEXDEBUG) -s skel $<
d97 1
d99 1
a99 1
	./flexml.bootstrap $(FLEXDEBUG) -a $<
d104 1
a104 1
clean::; $(RM) flexml flexml-act flexml-act.c flexml.bootstrap
d107 4
a110 6
	sed -e "s;/usr/bin/perl;$(PERL);g" \
	    -e "s;/usr/bin/flexml;$(FLEXML);g" \
	    -e "s;/usr/lib/flexml-act;$(ACT);g" \
	    -e "s;/usr/share/flexml/skel;$(SKEL);g" \
	    -e "s;/usr/share/doc/;$(DOCDIR)/;g" \
	    -e "s;/usr/man/man1/;$(MAN1DIR)/;g" flexml.pl >flexml
a112 8
# Boostrap version:
flexml.bootstrap:	flexml.pl
	sed -e "s;/usr/bin/perl;$(PERL);g" \
	    -e "s;/usr/bin/flexml;./flexml.bootstrap;g" \
	    -e "s;/usr/lib/flexml-act;./flexml-act;g" \
	    -e "s;/usr/share/flexml/skel;./skel;g" flexml.pl >flexml.bootstrap
	chmod +x flexml.bootstrap

d115 1
a115 1
	./flexml.bootstrap -L -s skel $<
d118 2
d140 1
a140 1
clean::; $(RM) my.c my-show my-show.c my-dummy my-dummy.c
d142 1
a142 1
my.l:		my.dtd
a145 3
my-dummy.c:	my.dtd
my-dummy:	my-dummy.o my.o

a146 1
my-show.c:	my-show.l
d148 11
a158 1
my-show:	my-show.o
d165 18
a182 5
# make clean && make all
# ./flexml.bootstrap -vXA -a my-show.act my.dtd
# flex -omy-show.c my-show.l
# cc -omy-show my-show.c 
# ./my-show <./my-joke.xml
@


1.15
log
@Works (still needs testing, though... :).
@
text
@d21 1
a21 1
# $Id: Makefile,v 1.14 1999/11/30 18:28:23 krisrose Exp krisrose $
d34 2
a35 1
SAMPS =	my.dtd my-show.act my-joke.xml
d160 11
@


1.14
log
@Full DTD parsing almost done...still some nitty-gritty, though.
@
text
@d21 1
a21 1
# $Id: Makefile,v 1.13 1999/11/29 16:09:02 krisrose Exp krisrose $
d78 1
a78 1
clean::; $(RM) *.[olh1] *-dummy.? lex.backup *~ ./#*
d82 6
d91 1
a91 3
%.c: 		%.l
	$(FLEX) -Bsppb $(FLEXDEBUG) -o$@@ $<

d95 3
a97 2
%-dummy.c:	%.dtd
	./flexml.bootstrap $(FLEXDEBUG) -D $<
a98 2
#%.c: 		%.act
#	./flexml.bootstrap $(FLEXDEBUG) -a $^
d123 1
a123 1
	./flexml.bootstrap -dL -s skel $<
@


1.13
log
@Full DTD parsing in progress...currently not working.
@
text
@d21 1
a21 1
# $Id: Makefile,v 1.12 1999/11/25 18:42:03 krisrose Exp krisrose $
d120 1
a120 1
	./flexml.bootstrap -L -s skel $<
@


1.12
log
@Stand-alone mode added and documented; still technical section to write.
@
text
@d21 1
a21 1
# $Id: Makefile,v 1.11 1999/11/25 03:01:47 krisrose Exp krisrose $
d82 6
d94 2
a95 5
%.c: 		%.act
	./flexml.bootstrap $(FLEXDEBUG) -a $^

%.c: 		%.l
	$(FLEX) -Bsppb $(FLEXDEBUG) -o$@@ $<
d152 2
a153 1
my-show.c:	my-show.act my.dtd
d155 1
a155 1
my-show:	my-show.o my.o
@


1.11
log
@Almost ready...
@
text
@d21 1
a21 1
# $Id: Makefile,v 1.10 1999/11/24 16:59:28 krisrose Exp krisrose $
d78 1
a78 1
clean::; $(RM) *.[olh1] *-dummy.? *~ ./#*
d92 1
a92 1
	$(FLEX) -Bspp $(FLEXDEBUG) -o$@@ $<
@


1.10
log
@Cleaned up.
@
text
@d21 1
a21 1
# $Id: Makefile,v 1.9 1999/11/24 16:46:57 krisrose Exp krisrose $
d92 1
a92 1
	$(FLEX) -B -s -p $(FLEXDEBUG) -o$@@ $<
d112 1
a112 3
	    -e "s;/usr/share/flexml/skel;./skel;g" \
	    -e "s;/usr/share/doc/;$(DOCDIR)/;g" \
	    -e "s;/usr/man/man1/;$(MAN1DIR)/;g" flexml.pl >flexml.bootstrap
d117 2
@


1.9
log
@Program and manpage done.
@
text
@d21 1
a21 1
# $Id: Makefile,v 1.8 1999/11/23 17:28:07 krisrose Exp krisrose $
d23 1
a23 1
# Files.
a37 1

d44 1
a44 1
SHARE = $(USR)/share
d51 1
a53 1
FLEXML = $(BINDIR)/flexml
d60 3
a62 1
# Installation target.
d65 1
d67 4
a74 1
	mkdir -p $(DESTDIR)$(DOCDIR)/flexml/examples/
a77 3
# GENERICS.

.PHONY: all install clean
d80 1
a80 1
# PATTERNS.
a137 1

a151 1

@


1.8
log
@Works but manual/paper still in flux...
@
text
@d21 1
a21 1
# $Id: Makefile,v 1.7 1999/11/23 15:56:00 krisrose Exp krisrose $
d23 1
a23 3
ALL =	flexml flexml-act flexml.skel flexml-act.dtd \
	flexml.1 flexml.html \
	my-show
d26 1
a26 1
	flexml.pl flexml.skel flexml-act-bootstrap.c flexml-act.dtd \
d29 10
a58 1
LDFLAGS = -s
d63 6
a68 6
all:		flexml.local $(ALL)
install:	flexml.local $(ALL)
	install -m555 flexml $(DESTDIR)$(BINDIR)/
	install -m555 flexml-act $(DESTDIR)$(LIBDIR)/
	install -m444 flexml.skel $(DESTDIR)$(SHARE)/flexml/skel
	install -m444 flexml.1 $(DESTDIR)$(MAN1DIR)/
d70 2
a71 2
	install -m444 flexml-act.dtd paper.html $(DESTDIR)$(DOCDIR)/flexml/
	install -m444 joke.act joke.dtd joke*.xml $(DESTDIR)$(DOCDIR)/flexml/examples/
d76 1
a76 1
clean::; $(RM) -f *~ *.o *.l *.h *-dummy* *-actions.c *.1 ./#*
d81 1
a81 1
	./flexml.local $(FLEXDEBUG) -s flexml.skel $<
d84 1
a84 1
	./flexml.local $(FLEXDEBUG) -D $<
d87 1
a87 1
	./flexml.local $(FLEXDEBUG) -a $^
d94 1
a94 1
clean::; $(RM) -f flexml flexml-act flexml-act.c flexml.local
d101 1
a101 4
	    -e "s;/usr/bin/flexml;$(BINDIR)/flexml;g" \
	    -e "s;/usr/lib/;$(LIBDIR)/;g" \
	    -e "s;/usr/doc/;$(DOCDIR)/;g" \
	    -e "s;/usr/share/;$(SHARE)/;g" \
d105 2
a106 2
# Boostrap:
flexml.local:	flexml.pl
d108 1
a108 1
	    -e "s;/usr/bin/flexml;./flexml.local;g" \
d110 4
a113 6
	    -e "s;/usr/share/flexml/skel;./flexml.skel;g" \
	    -e "s;/usr/lib/;$(LIBDIR)/;g" \
	    -e "s;/usr/doc/;$(DOCDIR)/;g" \
	    -e "s;/usr/share/;$(SHARE)/;g" \
	    -e "s;/usr/man/man1/;$(MAN1DIR)/;g" flexml.pl >flexml.local
	chmod +x flexml.local
d122 1
a122 1
clean::; $(RM) -f TAGS
d128 1
a128 1
clean::; $(RM) -f flexml.1 flexml.html pod2html-*
d139 1
a139 13
clean::; $(RM) -f joke.c joke joke-*

joke.l:		joke.dtd
joke.c:		joke.l
joke.o:		joke.c joke.h

joke-show.c:	joke-show.act joke.dtd
joke-show.o:	joke-show.c joke.h

joke-show:	joke-show.o joke.o 


clean::; $(RM) my.[lcho] my-show.[co] my-show my-dummy.[co] my-dummy
d145 1
@


1.7
log
@Fluktuerer.
@
text
@d21 1
a21 1
# $Id: Makefile,v 1.6 1999/11/23 10:27:04 krisrose Exp krisrose $
d25 1
a25 1
	joke.act joke.dtd joke1.xml joke2.xml
d29 1
a29 1
	joke.act joke.dtd joke1.xml joke2.xml
d31 1
a31 7
# SETUP (expanded in shell "..." string).

# Build setup.
CC = gcc -Wall -ansi -pedantic
CFLAGS = -O2 -g
FLEX = flex -B -s -p $(FLEXDEBUG)
#FLEXDEBUG = -d
a33 2
PERL = /usr/bin/perl

d41 3
d45 8
a52 1
SKEL = $(SHARE)/flexml.skel
d56 2
a57 2
all:		$(ALL)
install:	$(ALL)
d74 1
a74 1
	./flexml $(FLEXDEBUG) -s flexml.skel $<
d77 1
a77 1
	./flexml $(FLEXDEBUG) -D $<
d80 1
a80 1
	./flexml $(FLEXDEBUG) -a $< `expr '$*' : '\([^-]*\)-'`.dtd
d83 1
a83 12
	$(FLEX) -o$@@ $<

#%-dummy.a:	%-dummy.c
#	$(RM) -f $*-dummy-*.c
#	(cat $< | while read line; do \
#	    f=`expr "$$line" : '[a-z][a-z]* \([A-Za-z_]*\)(.*'`; \
#	    if [ -n "$$f" ]; then \
#		echo $$line > $*-dummy-$$f.c &&\
#		$(CC) -c $*-dummy-$$f.c; \
#	    fi; done)
#	ar r $*-dummy.a $*-dummy-*.o
#	$(RM) -f $*-dummy-*.[co]
d87 1
a87 1
clean::; $(RM) -f flexml flexml-act flexml-act.c
d91 3
d101 12
d146 1
a146 1
joke:		joke-show.o joke.o
d149 1
a149 1
clean::; $(RM) my.[hocl] my-show.[co]
d155 2
d159 1
a159 2

my:		my-show.o my.o
@


1.6
log
@Ready for release of Debian version 0.0.
@
text
@d21 1
a21 1
# $Id: Makefile,v 1.5 1999/11/23 10:10:36 krisrose Exp krisrose $
d67 1
a67 1
clean::; $(RM) -f *~ *.o *.l *.h *-dummies* *-actions.c *.1 ./#*
d71 1
a71 1
%.l %.h %-dummies.c: %.dtd
d74 2
a75 2
%-actions.c: %.act
	./flexml $(FLEXDEBUG) -Aa $< $*
d77 4
a80 1
%.c: %.l
d83 10
a92 10
%-dummies.a:	%-dummies.c
	$(RM) -f $*-dummies-*.c
	(cat $< | while read line; do \
	    f=`expr "$$line" : '[a-z][a-z]* \([A-Za-z_]*\)(.*'`; \
	    if [ -n "$$f" ]; then \
		echo $$line > $*-dummies-$$f.c &&\
		$(CC) -c $*-dummies-$$f.c; \
	    fi; done)
	ar r $*-dummies.a $*-dummies-*.o
	$(RM) -f $*-dummies-*.[co]
d108 1
a108 1
flexml-act.l:		flexml-act.dtd flexml flexml.skel
d111 2
a112 2
flexml-act-dummies.a:	flexml-act-dummies.c flexml-act.h
flexml-act:		flexml-act.o flexml-act-bootstrap.c flexml-act-dummies.a
d136 18
a153 4
joke:		joke.o joke-actions.o joke-dummies.a
joke-dummies.a:	joke-dummies.c joke.h
joke-actions.o:	joke-actions.c joke.h
joke-actions.c:	joke.act joke.dtd
@


1.5
log
@Spellling mistakes fixed...
@
text
@d21 1
a21 1
# $Id: Makefile,v 1.4 1999/11/23 09:32:31 krisrose Exp krisrose $
d45 3
a47 3
SHAREDIR = $(USR)/share
MAN1DIR = $(USR)/man/man1
DOCDIR = $(SHAREDIR)/doc
d50 1
a50 1
SKEL = $(SHAREDIR)/flexml.skel
d58 1
a58 1
	install -m444 flexml.skel $(DESTDIR)$(SHAREDIR)/
d60 1
a60 1
	@@mkdir -p $(DESTDIR)$(DOCDIR)/flexml/examples/
d100 1
a100 1
	    -e "s;/usr/share/;$(SHAREDIR)/;g" \
@


1.4
log
@Documentation updated.
@
text
@d4 1
a4 1
# This file is part of the FleXML XML processer generator system.
d21 1
a21 1
# $Id: Makefile,v 1.3 1999/11/23 04:03:05 krisrose Exp krisrose $
d27 4
d56 7
a62 7
	install -m555 flexml $(BINDIR)/
	install -m555 flexml-act $(LIBDIR)/
	install -m444 flexml.skel $(SHAREDIR)/
	install -m444 flexml.1 $(MAN1DIR)/
	mkdir -p $(DOCDIR)/flexml/examples/
	install -m444 flexml-act.dtd $(DOCDIR)/flexml/
	install -m444 joke.act joke.dtd joke1.xml $(DOCDIR)/flexml/examples/
d111 3
@


1.3
log
@Works for simple examples
@
text
@a4 1
# See the companion README and INSTALL files for further information.
d21 1
a21 1
# $Id: Makefile,v 1.2 1999/11/22 18:41:48 krisrose Exp krisrose $
d23 3
a25 1
all::
d38 1
a38 1
USR = /usr/local
d41 1
d43 1
a43 1
SHAREDIR = $(USR)/lib
d48 1
a48 5
install:	flexml flexml-act flexml.skel flexml.1
	install -m555 flexml $(BINDIR)
	install -m555 flexml-act $(LIBDIR)
	install -m555 flexml.skel $(SHAREDIR)
	install -m555 flexml.1 $(MAN1DIR)
d50 9
d63 1
a63 2
all::
clean::; $(RM) -f *~ *.o *.l *.h *-dummies* *.1 ./#*
d71 1
a71 1
	./flexml $(FLEXDEBUG) -A $*
d84 2
a85 1
	ar rv $*-dummies.a $*-dummies-*.o
d87 1
a87 1
# PROGRAM.
a88 1
all::	flexml flexml-act
d92 6
a97 5
	sed -e "s;/usr/bin/perl;$(PERL);" \
	    -e "s;/usr/bin/flexml;$(BINDIR)/flexml;" \
	    -e "s;/usr/lib/;$(LIBDIR)/;" \
	    -e "s;/usr/share/;$(SHAREDIR)/;" \
	    -e "s;/usr/man/man1/;$(MAN1DIR)/;" flexml.pl >flexml
d100 1
a100 1
# Action langauge
d108 1
a108 1
# MANUAL.
d110 1
a110 2
all::		flexml.1
clean::; $(RM) -f flexml.1
d115 3
d121 3
a123 3
all:: joke
clean::; $(RM) -f joke.c joke
joke.l:		joke.dtd flexml flexml.skel
d126 3
a128 2
joke:		joke.o joke-actions.c joke-dummies.a
joke-dummies.a:	joke-dummies.c
@


1.2
log
@Working like mad...
@
text
@d22 1
a22 1
# $Id: Makefile,v 1.1 1999/10/26 16:17:46 krisrose Exp krisrose $
d24 1
d31 2
a32 1
FLEX = flex -B -s -p -d
d36 16
a51 1
SKEL = /usr/share/flexml.skel
d57 1
a57 2
install::
clean::; $(RM) -f *~ *.o ./#*
d61 5
a65 2
%.l %.h: %.dtd
	./flexml -d -s flexml.skel $<
d70 9
a78 2
%.1:		%.pl
	pod2man $< >$@@
d82 2
a83 2
all::	flexml flexml.1
clean::; $(RM) -f flexml *.[1lc]
d87 4
a90 1
	    -e "s;/usr/share/flexml.skel;$(SKEL);" flexml.pl >flexml
d93 6
a98 1
flexml.1:	flexml.pl
a99 1
# TESTS...
d101 4
a104 2
all:: test
clean::; $(RM) -f test
d106 2
a107 3
joke.l:  joke.dtd flexml flexml.skel
joke.c:  joke.l
joke.o:  joke.c
a108 3
FleXML-actions.l:  FleXML-actions.dtd flexml flexml.skel
FleXML-actions.c:  FleXML-actions.l
FleXML-actions.o:  FleXML-actions.c
d110 1
a110 1
FleXML-actions2.o:  FleXML-actions2.c FleXML-actions.h
d112 8
a119 2
FleXML-actions:  FleXML-actions.o FleXML-actions2.o
	$(CC) $(LDFLAGS) -oFleXML-actions FleXML-actions.o FleXML-actions2.o -lfl
@


1.1
log
@Initial revision
@
text
@d1 2
a2 2
# FleXML: fast lexical XML scanning.
# Copyright  1999 Kristoffer Rose, NTSys.  All rights reserved.
d4 3
a6 4
# Description:	Makefile for Linux (Debian GNU/Linux)
# Author:	Kristoffer Rose
# Created:	September 1999
# License:	GNU GPL ("copyleft")
d8 4
a11 4
#   This program is free software; you can redistribute it and/or modify
#   it under the terms of the GNU General Public License as published by
#   the Free Software Foundation; either version 2 of the License, or
#   (at your option) any later version.
d13 4
a16 4
#   This program is distributed in the hope that it will be useful,
#   but WITHOUT ANY WARRANTY; without even the implied warranty of
#   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
#   GNU General Public License for more details.
d18 3
a20 3
#   You should have received a copy of the GNU General Public License
#   along with this program; if not, write to the Free Software
#   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
d22 1
a22 1
# $Header: /var/cvsroot/ntsys/FleXML/Makefile,v 1.3 1999/09/10 14:56:51 krisrose Exp $
d25 12
a36 1
# Generics.
d41 1
a41 3
clean::; $(RM) -f *~ ./#*

# Sic.
d43 1
a43 7
CC = gcc -Wall -ansi -pedantic
CFLAGS = -O2 -g
FLEX = flex

FLEXML = ./flexml.pl
SKEL = ./skeleton.l
DUMMYSKEL = ./skeleton-dummies.c
d45 2
a46 4
# Patterns.

%.l %-dummies.c: %.dtd
	$(FLEXML) -d -S$(SKEL) $<
d49 1
a49 1
	$(FLEX) -p -s -o$@@ $<
d54 1
a54 1
# Program.
d57 1
a57 1
clean::; $(RM) -f flexml flexml.1
d60 3
a62 1
	cp flexml.pl flexml
d66 1
a66 1
# Tests...
d69 9
a77 1
clean::; $(RM) -f test test.[lco] test-dummies.[co]
d79 1
a79 5
test.l:  test.dtd $(FLEXML) $(SKEL)
test-dummies.c: test.dtd $(FLEXML) $(DUMMYSKEL)
test.c:  test.l
test.o:  test.c
test-dummies.o:  test-dummies.c
d81 2
a82 2
test: test.o test-dummies.o
	$(CC) -otest $(LDFLAGS) test.o test-dummies.o -lfl
@
