all: ${ALL}
hachu: hachu.c
- $(CC) $(CFLAGS) hachu.c -o hachu
+ $(CC) $(CFLAGS) $(LDFLAGS) hachu.c -o hachu
install: ${ALL} ${srcdir}/svg/*
cp -u ${srcdir}/hachu $(DESTDIR)/usr/games
cp -u ${srcdir}/svg/*.svg `xboard --show-config Datadir`/themes/chu
install -d -m0755 `xboard --show-config Datadir`/themes/conf
cp -u ${srcdir}/svg/sho ${srcdir}/svg/chu `xboard --show-config Datadir`/themes/conf
+ install -d -m0755 $(DESTDIR)/usr/share/games/plugins/xboard
+ cp -u ${srcdir}/hachu.eng $(DESTDIR)/usr/share/games/plugins/xboard
hachu.6.gz: hachu.pod
pod2man -s 6 hachu.pod > hachu.man
install -d -m0755 HaChu
install -d -m0755 HaChu/svg
rm -f hachu.tar hachu.tar.gz
- cp hachu.c hachu.pod Makefile HaChu
+ cp hachu.c hachu.pod Makefile hachu.eng HaChu
cp chu/* HaChu/svg
(md5sum HaChu/* HaChu/svg/* > HaChu/md5sums) || true
tar -cvvf hachu.tar HaChu
uninstall:
rm -f $(DESTDIR)/usr/share/man/man6/hachu.6.gz
rm -f $(DESTDIR)/usr/games/hachu
+ rm -f $(DESTDIR)/usr/share/games/plugins/xboard/hachu.eng
--- /dev/null
+plugin spec 0.0
+hachu
+nocastle,makruk,shatranj,shogi:sho,shogi:chu,shogi:dai