Description: Update the folders in which axmail is installed
Author: Dave Hibberd <d@vehibberd.com>
Last-Update: 2019-01-05

--- a/Makefile
+++ b/Makefile
@@ -1,6 +1,6 @@
 all: axmail
 
-MAN_DIR = /usr/local/share/man
+MAN_DIR = debian/axmail/usr/share/man
 CC = gcc
 LD = gcc
 # CFLAGS = -O2 -Wstrict-prototypes -g -I../lib
@@ -10,25 +10,20 @@
 .c.o:
 	$(CC) $(CPPFLAGS) $(CFLAGS) $(LDFLAGS) -c $<
 
-upgrade: installbin installhelp installman installconf
-
-install: installbin installconf installhelp installman
+install: installbin installconf installhelp
 
 installbin: all
-	install -m 0755 -s -o root -g root axmail	 /usr/local/sbin
+	install -m 0755 -s -o root -g root axmail	 debian/axmail/usr/sbin
 
 installconf:
-	install -m 755    -o root -g root -d		/usr/local/etc/ax25
-	install -b -m 644 -o root -g root etc/axmail.conf /usr/local/etc/ax25
-	install -m 644    -o root -g root etc/welcome.txt /usr/local/etc/ax25
+	install -m 755    -o root -g root -d		debian/axmail/etc/ax25
+	install -b -m 644 -o root -g root etc/axmail.conf debian/axmail/etc/ax25
+	install -m 644    -o root -g root etc/welcome.txt debian/axmail/etc/ax25
 
 installhelp:
-	install -m 755    -o root -g root -d		  /usr/local/var/ax25/axmail/help
-	install -m 644    -o root -g root etc/help/*.hlp  /usr/local/var/ax25/axmail/help
+	install -m 755    -o root -g root -d		  debian/axmail/var/lib/ax25/axmail/help
+	install -m 644    -o root -g root etc/help/*.hlp  debian/axmail/var/lib/ax25/axmail/help
 
-installman:
-	install -m 644    -p man/axmail.8	$(MAN_DIR)/man8
-	install -m 644    -p man/axmail.conf.5	$(MAN_DIR)/man5
 back:
 	rm -f ../mail.tar.gz
 	tar cvf ../mail.tar *
