1 2bin_PROGRAMS = atris 3 4atris_SOURCES = ai.c \ 5 atris.c \ 6 button.c \ 7 display.c \ 8 event.c \ 9 fastrand.c \ 10 gamemenu.c \ 11 grid.c \ 12 highscore.c \ 13 identity.c \ 14 menu.c \ 15 network.c \ 16 piece.c \ 17 sound.c \ 18 xflame.c \ 19 ai.h \ 20 atris.h \ 21 button.h \ 22 display.h \ 23 fastrand.h \ 24 grid.h \ 25 highscore.h \ 26 identity.h \ 27 menu.h \ 28 options.h \ 29 piece.h \ 30 sound.h 31 32INCLUDES = -I.protos 33 34EXTRA_DIST = \ 35 AUTHORS \ 36 COPYING \ 37 ChangeLog \ 38 INSTALL \ 39 NEWS \ 40 README \ 41 atris.spec.in \ 42 graphics \ 43 styles \ 44 autogen.sh \ 45 icon.xpm \ 46 Atris.Players \ 47 Atris.Scores 48 49 50SUBDIRS = .protos graphics styles Docs 51 52# Special install rule for the game 53install: install-am 54 make install_gamedata target=@GAME_INSTALLDIR@ 55 56install_gamedata: 57 sh mkinstalldirs $(target)/ 58 cp -rv graphics \ 59 styles \ 60 Atris.Players \ 61 Atris.Scores \ 62 $(target)/ 63 chmod 666 $(target)/Atris.Players 64 chmod 666 $(target)/Atris.Scores 65 66install_gamedocs: 67 sh mkinstalldirs $(target)/ 68 cp -rv README* COPYING* Docs* $(target)/ 69 70# Rule to build tar-gzipped distribution package 71$(PACKAGE)-$(VERSION).tar.gz: dist 72 73# Rule to build RPM distribution package 74 75i386-rpm: $(PACKAGE)-$(VERSION).tar.gz 76 cp $(PACKAGE)-$(VERSION).tar.gz /usr/src/RPM/SOURCES 77 rpm -ba --target=i386 atris.spec 78 79i686-rpm: $(PACKAGE)-$(VERSION).tar.gz 80 cp $(PACKAGE)-$(VERSION).tar.gz /usr/src/RPM/SOURCES 81 rpm -ba --target=i686 atris.spec 82 83zip: distdir $(PACKAGE) 84 mv $(PACKAGE) $(PACKAGE)-$(VERSION)/$(PACKAGE).exe 85 mv $(PACKAGE)-$(VERSION) $(PACKAGE) 86 cp ~/*.dll $(PACKAGE) 87 rm $(PACKAGE)/config* $(PACKAGE)/*.[ch] $(PACKAGE)/Make* $(PACKAGE)/*.m4 $(PACKAGE)/{install-sh,missing,mkinstalldirs,autogen.sh} 88 rm $(PACKAGE)/*.in -r $(PACKAGE)/.protos 89 zip -r9 $(PACKAGE)-$(VERSION)-win32.zip $(PACKAGE) 90 rm -r $(PACKAGE) 91