7 ALL= fairymax shamax maxqi fairymax.6.gz
12 $(CC) $(CFLAGS) -DINI_FILE=\"/usr/share/games/fairymax/fmax.ini\" fairymax.c -o fairymax
15 $(CC) $(CFLAGS) -DINI_FILE=\"/usr/share/games/fairymax/fmax.ini\" -DSHATRANJ fairymax.c -o shamax
18 $(CC) $(CFLAGS) -DINI_FILE=\"/usr/share/games/fairymax/qmax.ini\" maxqi.c -o maxqi
20 install: ${ALL} ${srcdir}/data/*
21 cp -u ${srcdir}/fairymax $(DESTDIR)/usr/games
22 cp -u ${srcdir}/shamax $(DESTDIR)/usr/games
23 cp -u ${srcdir}/maxqi $(DESTDIR)/usr/games
24 install -d -m0755 $(DESTDIR)/usr/share/games/fairymax
25 cp -u ${srcdir}/data/* $(DESTDIR)/usr/share/games/fairymax
26 install -d -m0755 $(DESTDIR)/usr/share/man/man6
27 cp -u ${srcdir}/fairymax.6.gz $(DESTDIR)/usr/share/man/man6
29 fairymax.6.gz: fairymax.pod
30 pod2man -s 6 fairymax.pod > fmax.man
31 cp fmax.man fairymax.6
39 rm -f ${ALL} *~ data/*~ *.man md5sums
42 install -d -m0755 Fairy-Max
43 install -d -m0755 Fairy-Max/data
44 rm -f fairymax.tar fairymax.tar.gz
45 cp fairymax.c maxqi.c fairymax.pod Makefile README changelog copyright md5sums Fairy-Max
46 cp data/* Fairy-Max/data
47 md5 Fairy-Max/* Fairy-Max/data/* > Fairy-Max/md5sums
48 tar -cvvf fairymax.tar Fairy-Max
56 rm -f $(DESTDIR)/usr/share/games/fairymax/*
57 rmdir $(DESTDIR)/usr/share/games/fairymax
58 rm -f $(DESTDIR)/usr/share/man/man6/fairymax.6.gz
59 rm -f $(DESTDIR)/usr/games/fairymax
60 rm -f $(DESTDIR)/usr/games/shamax
61 rm -f $(DESTDIR)/usr/games/maxqi