CC?=gcc
CFLAGS?= -O2 -s
+DATADIR=`xboard --show-config Datadir`
ALL= hachu hachu.6.gz
$(CC) $(CFLAGS) $(LDFLAGS) hachu.c -o hachu
install: ${ALL} ${srcdir}/svg/*
+ install -d -m0755 $(DESTDIR)/usr/games
cp -u ${srcdir}/hachu $(DESTDIR)/usr/games
install -d -m0755 $(DESTDIR)/usr/share/man/man6
cp -u ${srcdir}/hachu.6.gz $(DESTDIR)/usr/share/man/man6
- install -d -m0755 `xboard --show-config Datadir`/themes/chu
- 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)$(DATADIR)/themes/chu
+ cp -u ${srcdir}/svg/*.svg $(DESTDIR)$(DATADIR)/themes/chu
+ install -d -m0755 $(DESTDIR)$(DATADIR)/themes/conf
+ cp -u ${srcdir}/svg/sho ${srcdir}/svg/chu $(DESTDIR)$(DATADIR)/themes/conf
install -d -m0755 $(DESTDIR)/usr/share/games/plugins/logos
cp -u ${srcdir}/logo.png $(DESTDIR)/usr/share/games/plugins/logos/hachu.png
install -d -m0755 $(DESTDIR)/usr/share/games/plugins/xboard