-#EXTRA_DIST = BUGS HISTORY LICENSE aclocal.m4 debian/
-SUBDIRS = src test ocaml
+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
-bin_SCRIPTS = editex-config
+pkgconfigdir = $(libdir)/pkgconfig
+pkgconfig_DATA = editex.pc
backup:
cd ..; tar cvfz @PACKAGE@-@VERSION@-`date|tr ' ' '_'|tr ':' '_'`.tar.gz @PACKAGE@
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)
+