File mouseemu.makefile.patch of Package mouseemu

#! /bin/sh /usr/share/dpatch/dpatch-run
## 21_makefile.dpatch by  <gaudenz@debian.org>
##
## All lines beginning with `## DP:' are a description of the patch.
## DP: install manpage to /usr/share/man

@DPATCH@

---
 Makefile |   10 +++++++---
 1 file changed, 7 insertions(+), 3 deletions(-)

--- a/Makefile
+++ b/Makefile
@@ -1,7 +1,11 @@
+CFLAGS= -Wall -g
+
 all:
-	gcc -Wall -g -o mouseemu mouseemu.c
+	gcc $(CFLAGS) -o mouseemu mouseemu.c
 clean:
 	rm -f *.o core* mouseemu
 install:
-	cp -f mouseemu $(DESTDIR)/usr/sbin/
-	cp -f mouseemu.8 $(DESTDIR)/usr/man/man8
+	mkdir -p $(DESTDIR)/usr/sbin/
+	mkdir -p $(DESTDIR)/usr/share/man/man8
+	cp -fL mouseemu $(DESTDIR)/usr/sbin/
+	cp -fL mouseemu.8 $(DESTDIR)/usr/share/man/man8