$OpenBSD: patch-src_kile_syntax_Makefile_in,v 1.4 2008/03/29 16:35:13 steven Exp $
--- src/kile/syntax/Makefile.in.orig	Sun Nov 18 22:05:55 2007
+++ src/kile/syntax/Makefile.in	Sat Mar 22 13:52:40 2008
@@ -55,9 +55,7 @@ am__strip_dir = `echo $$p | sed -e 's|^.*/||'`;
 am__installdirs = "$(DESTDIR)$(syntaxdir)"
 syntaxDATA_INSTALL = $(INSTALL_DATA)
 DATA = $(syntax_DATA)
-#>- DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
-#>+ 1
-DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) $(KDE_DIST)
+DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
 ACLOCAL = @ACLOCAL@
 AMTAR = @AMTAR@
 AR = @AR@
@@ -308,25 +306,11 @@ xdg_appsdir = @xdg_appsdir@
 xdg_directorydir = @xdg_directorydir@
 xdg_menudir = @xdg_menudir@
 syntaxdir = $(kde_datadir)/katepart/syntax
-syntax_DATA = latex.xml bibtex.xml
-#>- all: all-am
-#>+ 1
-all: docs-am  all-am
+syntax_DATA = latex-kile.xml bibtex-kile.xml
+all: all-am
 
 .SUFFIXES:
 $(srcdir)/Makefile.in:  $(srcdir)/Makefile.am  $(am__configure_deps)
-#>- 	@for dep in $?; do \
-#>- 	  case '$(am__configure_deps)' in \
-#>- 	    *$$dep*) \
-#>- 	      cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
-#>- 		&& exit 0; \
-#>- 	      exit 1;; \
-#>- 	  esac; \
-#>- 	done; \
-#>- 	echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu  src/kile/syntax/Makefile'; \
-#>- 	cd $(top_srcdir) && \
-#>- 	  $(AUTOMAKE) --gnu  src/kile/syntax/Makefile
-#>+ 12
 	@for dep in $?; do \
 	  case '$(am__configure_deps)' in \
 	    *$$dep*) \
@@ -338,7 +322,6 @@ $(srcdir)/Makefile.in:  $(srcdir)/Makefile.am  $(am__c
 	echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu  src/kile/syntax/Makefile'; \
 	cd $(top_srcdir) && \
 	  $(AUTOMAKE) --gnu  src/kile/syntax/Makefile
-	cd $(top_srcdir) && perl admin/am_edit src/kile/syntax/Makefile.in
 .PRECIOUS: Makefile
 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
 	@case '$?' in \
@@ -443,13 +426,9 @@ distclean-generic:
 maintainer-clean-generic:
 	@echo "This command is intended for maintainers to use"
 	@echo "it deletes files that may require special tools to rebuild."
-#>- clean: clean-am
-#>+ 1
-clean: kde-rpo-clean  clean-am
+clean: clean-am
 
-#>- clean-am: clean-generic clean-libtool mostlyclean-am
-#>+ 1
-clean-am: clean-bcheck  clean-generic clean-libtool mostlyclean-am
+clean-am: clean-generic clean-libtool mostlyclean-am
 
 distclean: distclean-am
 	-rm -f Makefile
@@ -515,74 +494,16 @@ uninstall-am: uninstall-syntaxDATA
 	mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
 	uninstall uninstall-am uninstall-syntaxDATA
 
+# dl - 4 January 2006
+# Rename these files so they don't conflict with the KDE
+# defaults. This gives the user a choice between the syntax
+# files provided by Kile, and those shipped with KDE
+latex-kile.xml:
+	mv latex.xml latex-kile.xml
+
+bibtex-kile.xml:
+	mv bibtex.xml bibtex-kile.xml
+
 # Tell versions [3.59,3.63) of GNU make to not export all variables.
 # Otherwise a system limit (for SysV at least) may be exceeded.
 .NOEXPORT:
-
-#>+ 2
-KDE_DIST=latex.xml bibtex.xml Makefile.in CMakeLists.txt Makefile.am 
-
-#>+ 2
-docs-am:
-
-#>+ 15
-force-reedit:
-		@for dep in $?; do \
-	  case '$(am__configure_deps)' in \
-	    *$$dep*) \
-	      cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
-		&& exit 0; \
-	      exit 1;; \
-	  esac; \
-	done; \
-	echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu  src/kile/syntax/Makefile'; \
-	cd $(top_srcdir) && \
-	  $(AUTOMAKE) --gnu  src/kile/syntax/Makefile
-	cd $(top_srcdir) && perl admin/am_edit src/kile/syntax/Makefile.in
-
-
-#>+ 21
-clean-bcheck: 
-	rm -f *.bchecktest.cc *.bchecktest.cc.class a.out
-
-bcheck: bcheck-am
-
-bcheck-am:
-	@for i in ; do \
-	    if test $(srcdir)/$$i -nt $$i.bchecktest.cc; then \
-	        echo "int main() {return 0;}" > $$i.bchecktest.cc ; \
-	        echo "#include \"$$i\"" >> $$i.bchecktest.cc ; \
-	        echo "$$i"; \
-	        if ! $(CXX) $(DEFS) -I. -I$(srcdir) -I$(top_builddir) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(CXXFLAGS) $(KDE_CXXFLAGS)  --dump-class-hierarchy -c $$i.bchecktest.cc; then \
-	            rm -f $$i.bchecktest.cc; exit 1; \
-	        fi ; \
-	        echo "" >> $$i.bchecktest.cc.class; \
-	        perl $(top_srcdir)/admin/bcheck.pl $$i.bchecktest.cc.class || { rm -f $$i.bchecktest.cc; exit 1; }; \
-	        rm -f a.out; \
-	    fi ; \
-	done
-
-
-#>+ 3
-final:
-	$(MAKE) all-am
-
-#>+ 3
-final-install:
-	$(MAKE) install-am
-
-#>+ 3
-no-final:
-	$(MAKE) all-am
-
-#>+ 3
-no-final-install:
-	$(MAKE) install-am
-
-#>+ 3
-kde-rpo-clean:
-	-rm -f *.rpo
-
-#>+ 3
-nmcheck: 
-nmcheck-am: nmcheck
