Add image files for various Shogi themes
[xboard.git] / themes / Shogi / 1-kanji-chu / Makefile
1 srcdir = .
2
3 DATADIR=`xboard --show-config Datadir`
4 THEMENICK=1-kanji-chu
5
6 install:
7         install -d -m0755 $(DESTDIR)$(DATADIR)/themes/conf
8         cp -u ${srcdir}/themedef $(DESTDIR)$(DATADIR)/themes/conf/$(THEMENICK)
9         install -d -m0755 $(DESTDIR)$(DATADIR)/themes/textures
10         cp -u ${srcdir}/wood_kaya.png $(DESTDIR)$(DATADIR)/themes/textures
11         install -d -m0755 $(DESTDIR)$(DATADIR)/themes/$(THEMENICK)
12         cp -u ${srcdir}/*.svg $(DESTDIR)$(DATADIR)/themes/$(THEMENICK)
13
14 md5sums: ${srcdir}/*.svg ${srcdir}/themedef ${srcdir}/*.png Makefile
15         md5sum *.svg themedef Makefile README > md5sums
16
17 dist-clean: 
18         rm -f *~ md5sums
19
20 dist: md5sums
21         rm -f $(THEMENICK).tar $(THEMENICK).tar.gz
22         tar -cvvf $(THEMENICK).tar *.svg *.png themedef Makefile README md5sums
23         gzip $(THEMENICK).tar
24
25 uninstall:
26         rm -f $(DESTDIR)$(DATADIR)/themes/conf/$(THEMENICK)
27         rm -f $(DESTDIR)$(DATADIR)/themes/$(THEMENICK)/*
28         rm -f $(DESTDIR)$(DATADIR)/themes/textures/wood_kaya.png
29         rmdir $(DESTDIR)$(DATADIR)/themes/$(THEMENICK)
30