# html2hdml ( html to hdml converter)
# Coprygight (C) 2000-2003 Dino Co.,Ltd.
# http://www.dino.co.jp/
bin_PROGRAMS=\
html2hdml
html2hdml_SOURCES=\
convert.c \
hdmlstruct.c \
list.c \
strinput.c \
emoji.c \
html2hdml-scan.l \
radionum.c
EXTRA_DIST=\
COPYING \
README \
strinput.h \
html2hdml-parse.y \
html2hdml.h \
mod_html2hdml.c \
mod_html2hdml.h \
html2hdml.spec \
html2hdml.spec.in
SCANNER_SRC = html2hdml-scan.l
PARSER_SRC = html2hdml-parse.y
MOD_OBJS=\
convert.o \
emoji.o \
hdmlstruct.o \
html2hdml-scan.o \
list.o \
radionum.o \
strinput.o
clean-compile:
-rm -f html2hdml-scan.c html2hdml-parse.c
html2hdml-scan.c: html2hdml-scan.l html2hdml-parse.c html2hdml.h
$(LEX) $(SCANNER_SRC)
@mv lex.yy.c $@
html2hdml-parse.c: $(PARSER_SRC) html2hdml.h
$(YACC) $(PARSER_SRC)
@mv y.tab.c $@
MODULE = mod_html2hdml.so
$(MODULE):mod_html2hdml.c $(MOD_OBJS)
$(APXS) -c $(MOD_DEF) $(INC) $(LIB) mod_html2hdml.c $(MOD_OBJS)
@rm -f mod_html2hdml.o
apx : $(MODULE)
apx-install: $(MODULE)
$(APXS) -ia $(MODULE)
rpm: build-rpm
build-rpm:
$(MAKE) html2hdml.spec
$(MAKE) dist
rm -rf rpm/BUILD/*
rm -f rpm/RPMS/*/*
rm -f rpm/SOURCES/*
rm -f rpm/SPECS/*
rm -f rpm/SRPMS/*
unset MAKEFLAGS ; test ! -f $$HOME/.bashrc || . $$HOME/.bashrc; rpm -ta html2hdml-@HTML2HDML_VERSION@.tar.gz