From 82fe79a9981c0288ca3c3c704af17ad2f81cfd2f Mon Sep 17 00:00:00 2001 From: H.G. Muller Date: Sun, 17 Jan 2010 22:04:24 +0100 Subject: [PATCH] Let Makefile pay attention to $(DESTDIR) Patch requested by Debian --- Makefile | 26 +++++++++++++------------- 1 files changed, 13 insertions(+), 13 deletions(-) diff --git a/Makefile b/Makefile index e4e2fc0..4788221 100644 --- a/Makefile +++ b/Makefile @@ -18,13 +18,13 @@ maxqi: maxqi.c $(CC) $(CFLAGS) -DINI_FILE=\"/usr/share/games/fairymax/qmax.ini\" maxqi.c -o maxqi install: ${ALL} ${srcdir}/data/* - cp -u ${srcdir}/fairymax /usr/games - cp -u ${srcdir}/shamax /usr/games - cp -u ${srcdir}/maxqi /usr/games - install -d -m0755 /usr/share/games/fairymax - cp -u ${srcdir}/data/* /usr/share/games/fairymax - install -d -m0755 /usr/share/man/man6 - cp -u ${srcdir}/fairymax.6.gz /usr/share/man/man6 + cp -u ${srcdir}/fairymax $(DESTDIR)/usr/games + cp -u ${srcdir}/shamax $(DESTDIR)/usr/games + cp -u ${srcdir}/maxqi $(DESTDIR)/usr/games + install -d -m0755 $(DESTDIR)/usr/share/games/fairymax + cp -u ${srcdir}/data/* $(DESTDIR)/usr/share/games/fairymax + install -d -m0755 $(DESTDIR)/usr/share/man/man6 + cp -u ${srcdir}/fairymax.6.gz $(DESTDIR)/usr/share/man/man6 fairymax.6.gz: fairymax.pod pod2man -s 6 fairymax.pod > fmax.man @@ -45,10 +45,10 @@ dist: gzip fairymax.tar uninstall: - rm -f /usr/share/games/fairymax/* - rmdir /usr/share/games/fairymax - rm -f /usr/share/man/man6/fairymax.6.gz - rm -f /usr/games/fairymax - rm -f /usr/games/shamax - rm -f /usr/games/maxqi + rm -f $(DESTDIR)/usr/share/games/fairymax/* + rmdir $(DESTDIR)/usr/share/games/fairymax + rm -f $(DESTDIR)/usr/share/man/man6/fairymax.6.gz + rm -f $(DESTDIR)/usr/games/fairymax + rm -f $(DESTDIR)/usr/games/shamax + rm -f $(DESTDIR)/usr/games/maxqi -- 1.7.0.4