Description: lex.l building fix
 This patch makes lex work with the lex.l file.
 .
 amiwm (0.21pl2-1) unstable; urgency=low
 .
   * New upstream version.
   * debian/rules: add lintian recommended targets.
   * debian/copyright: update copyright years.
   * Bump debhelper version to 8.
   * Bump standards version to 3.9.2.
Author: Gürkan Sengün <gurkan@phys.ethz.ch>

---
Forwarded: no
Last-Update: 2012-11-01

--- amiwm-0.21pl2.orig/Makefile.in
+++ amiwm-0.21pl2/Makefile.in
@@ -1,3 +1,6 @@
+# Edited for Debian GNU/Linux.
+
+EXAMPLES = $(DESTDIR)/usr/share/doc/amiwm/examples
 srcdir = @srcdir@
 VPATH = @srcdir@
 SHELL = /bin/sh
@@ -12,9 +15,11 @@ LIBS = @X_LIBS@ @X_PRE_LIBS@ -Llibami -l
 	-lX11 @X_EXTRA_LIBS@ @LIBS@
 prefix = @prefix@
 exec_prefix = @exec_prefix@
-bindir = $(exec_prefix)/bin
-libdir = $(exec_prefix)/lib
-mandir = $(prefix)/man
+bindir = $(DESTDIR)/usr/bin
+obindir = $(DESTDIR)/usr/bin
+libdir = $(DESTDIR)/usr/lib
+mandir = $(DESTDIR)/usr/share/man
+xmandir = $(DESTDIR)/usr/share/man
 INSTALL = @INSTALL@
 LN_S = @LN_S@
 RM = -rm -f
--- amiwm-0.21pl2.orig/lex.l
+++ amiwm-0.21pl2/lex.l
@@ -6,6 +6,7 @@ extern int ParseError;
 extern FILE *rcfile;
 #undef yyin
 #define yyin rcfile
+#define YY_SKIP_YYWRAP
 #define yywrap() 1
 extern int parse_keyword(char *);
 void fixup_string(char *, char *);
