-EXTRA_DIST = BUGS LICENSE aclocal.m4 editex.pc.in
-SUBDIRS = src test ocaml textomml
+DISTDIR = @PACKAGE@-@VERSION@
+
+EXTRA_DIST = BUGS LICENSE BUGS-GDOME2 MODES PATTERNS aclocal.m4 debian/ editex.pc.in
+SUBDIRS = src test ocaml textomml xsl dict
CLEANFILES = core
pkgconfigdir = $(libdir)/pkgconfig
ICCFILES=`find . -name "*.icc"`; \
wc -l $$CFILES $$HFILES $$CCFILES $$HHFILES $$ICCFILES | tail -n 1 \
)
+
+deb: dist
+ if [ -d $(DISTDIR)/ ]; then rm -rf $(DISTDIR); else true; fi
+ tar xvzf $(DISTDIR).tar.gz
+ (cd $(DISTDIR)/ && debuild)
+ rm -rf $(DISTDIR)
+
O_S = ml_mathml_editor.o c_mathml_editor.o
LO_S = $(O_S:%.o=%.lo)
SHARED_LIBS = $(GMETADOM_LIBS) $(GDOMEXSLT_LIBS) -lmlgdome2-xslt -lmlgdome
-BYTE_STUFF = i_mathml_editor.cmi mathml_editor.cmi $(ARCHIVE).cma $(DLL)
+BYTE_STUFF = i_mathml_editor.cmi mathml_editor.cmi $(ARCHIVE).cma $(DLL) lib$(ARCHIVE).a
NATIVE_STUFF = $(ARCHIVE).cmxa $(ARCHIVE).a
BYTE_INSTALL_STUFF = $(BYTE_STUFF) META
NATIVE_INSTALL_STUFF = $(NATIVE_STUFF)