5 INI_F?=$(DESTDIR)/usr/share/games/fairymax/fmax.ini
6 INI_Q?=$(DESTDIR)/usr/share/games/fairymax/qmax.ini
9 ALL= fairymax shamax maxqi fairymax.6.gz
14 $(CC) $(CFLAGS) -DINI_FILE=\"${INI_F}\" fairymax.c -o fairymax
17 $(CC) $(CFLAGS) -DINI_FILE=\"${INI_F}\" -DSHATRANJ fairymax.c -o shamax
20 $(CC) $(CFLAGS) -DINI_FILE=\"${INI_Q}\" maxqi.c -o maxqi
22 install: ${ALL} ${srcdir}/data/*
23 cp -u ${srcdir}/fairymax $(DESTDIR)/usr/games
24 cp -u ${srcdir}/shamax $(DESTDIR)/usr/games
25 cp -u ${srcdir}/maxqi $(DESTDIR)/usr/games
26 install -d -m0755 $(DESTDIR)/usr/share/games/fairymax
27 cp -u ${srcdir}/data/* $(DESTDIR)/usr/share/games/fairymax
28 install -d -m0755 $(DESTDIR)/usr/share/man/man6
29 cp -u ${srcdir}/fairymax.6.gz $(DESTDIR)/usr/share/man/man6
31 fairymax.6.gz: fairymax.pod
32 pod2man -s 6 fairymax.pod > fmax.man
33 cp fmax.man fairymax.6
41 rm -f ${ALL} *~ data/*~ *.man md5sums
44 install -d -m0755 Fairy-Max
45 install -d -m0755 Fairy-Max/data
46 rm -f fairymax.tar fairymax.tar.gz
47 cp fairymax.c maxqi.c fairymax.pod Makefile README changelog copyright Fairy-Max
48 cp data/* Fairy-Max/data
49 (md5sum Fairy-Max/* Fairy-Max/data/* > Fairy-Max/md5sums) || true
50 tar -cvvf fairymax.tar Fairy-Max
58 rm -f $(DESTDIR)/usr/share/games/fairymax/*
59 rmdir $(DESTDIR)/usr/share/games/fairymax
60 rm -f $(DESTDIR)/usr/share/man/man6/fairymax.6.gz
61 rm -f $(DESTDIR)/usr/games/fairymax
62 rm -f $(DESTDIR)/usr/games/shamax
63 rm -f $(DESTDIR)/usr/games/maxqi