Remove unused variable
[vte.git] / Makefile.am
index 47c6127..ffc1772 100644 (file)
@@ -1,34 +1,64 @@
-SUBDIRS = src gnome-pty-helper python termcaps po doc
-EXTRA_DIST = HACKING vte.spec vte.pc.in
+SUBDIRS = src termcaps po doc perf
+
+if HAVE_GTK_2
+SUBDIRS += python
+endif
+
+EXTRA_DIST = \
+       MAINTAINERS \
+       HACKING \
+       autogen.sh \
+       ChangeLog.pre-git
+
+DISTCLEANFILES =
+
+if BUILD_GNOME_PTY_HELPER
+SUBDIRS += gnome-pty-helper
+endif
+
+if ENABLE_GLADE_CATALOGUE
+SUBDIRS += glade
+endif
 
 pkgconfigdir = $(libdir)/pkgconfig
-pkgconfig_DATA = vte.pc
-
-CVSTAG=$(shell echo $(PACKAGE)-$(VERSION) | sed 's,[\.\-],_,g')
-
-forcetag:
-       cvs tag -cFR $(CVSTAG) .
-
-reallytag:
-       cvs tag -cR $(CVSTAG) .
-
-tag:
-       $(top_srcdir)/autogen.sh
-       $(MAKE) reallytag
-
-archive:
-       root=`cat $(top_srcdir)/CVS/Root` ; \
-       repo=`cat $(top_srcdir)/CVS/Repository` ; \
-       tmpdir=`mktemp -d /tmp/$(PACKAGE)-cvsXXXXXX` ; \
-       dir=`pwd` ; \
-       cd $$tmpdir ; \
-       cvs -d $$root export -r $(CVSTAG) $$repo ; \
-       cd $$tmpdir/$$repo ; \
-       ./autogen.sh ; \
-       make dist ; \
-       cp $(PACKAGE)-$(VERSION).tar.gz $$dir/ ; \
-       rpmbuild -tb $(PACKAGE)-$(VERSION).tar.gz || true ; \
-       rm -fr $$tmpdir
-
-srpm: $(top_srcdir)/$(PACKAGE)-$(VERSION).tar.gz
-       rpmbuild -ts $(top_srcdir)/$(PACKAGE)-$(VERSION).tar.gz
+pkgconfig_DATA = vte$(VTE_PC_VERSION).pc
+
+DISTCHECK_CONFIGURE_FLAGS = \
+       --enable-gtk-doc \
+       --disable-introspection \
+       --disable-silent-rules \
+       --with-gtk=2.0
+
+MAINTAINERCLEANFILES = \
+               ChangeLog \
+               $(srcdir)/INSTALL \
+               $(srcdir)/aclocal.m4 \
+               $(srcdir)/autoscan.log \
+               $(srcdir)/compile \
+               $(srcdir)/config.guess \
+               $(srcdir)/config.h.in \
+               $(srcdir)/config.sub \
+               $(srcdir)/configure \
+               $(srcdir)/configure.scan \
+               $(srcdir)/depcomp \
+               $(srcdir)/install-sh \
+               $(srcdir)/ltmain.sh \
+               $(srcdir)/missing \
+               $(srcdir)/mkinstalldirs \
+               $(srcdir)/omf.make \
+               $(srcdir)/xmldocs.make \
+               $(srcdir)/gtk-doc.make \
+               $(srcdir)/po/Makefile.in.in \
+               `find "$(srcdir)" -type f -name Makefile.in -print`
+
+# Build ChangeLog from GIT  history
+ChangeLog:
+       $(AM_V_GEN) if test -d $(top_srcdir)/.git; then \
+               GIT_DIR="$(top_srcdir)/.git" git log --stat > $@; \
+       fi
+
+dist: ChangeLog
+
+.PHONY: ChangeLog
+
+-include $(top_srcdir)/git.mk