# -copyright- #-# Copyright © 2021 Eric Bina, Dave Black, TJ Phan, #-# Vincent Renardias, Willem Vermin #-# #-# Permission is hereby granted, free of charge, to any person #-# obtaining a copy of this software and associated documentation #-# files (the “Software”), to deal in the Software without #-# restriction, including without limitation the rights to use, #-# copy, modify, merge, publish, distribute, sublicense, and/or #-# sell copies of the Software, and to permit persons to whom #-# the Software is furnished to do so, subject to the following #-# conditions: #-# #-# The above copyright notice and this permission notice shall #-# be included in all copies or substantial portions of the Software. #-# #-# THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, #-# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES #-# OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND #-# NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT #-# HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, #-# WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING #-# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR #-# OTHER DEALINGS IN THE SOFTWARE. #-# games_PROGRAMS = xfishtank gamesdir = $(exec_prefix)/games nodist_xfishtank_SOURCES = ui_xml.h BUILT_SOURCES = ui_xml.h tarfile.inc tarfile = $(top_builddir)/$(PACKAGE_TARNAME)-$(VERSION).tar.gz $(tarfile): echo "No tarfile available during build." > $@ echo "Run 'configure' or 'make dist' to make one, and run 'make' again." >> $@ if MAKESELFREP tarfile.inc: $(tarfile) export CC="$(CC)"; export CFLAGS="$(CFLAGS)"; $(TOASCII) < $(tarfile) > $@ else tarfile.inc: echo "No selfrep compiled in" | $(TOASCII) > $@ endif EXTRA_DIST = FishList xfishtank.png xfishtank.desktop gen_ui_xml.sh ui.xml fishes \ tocc.sh toascii.sh TOCC = $(top_srcdir)/src/tocc.sh TOASCII = $(top_srcdir)/src/toascii.sh xfishtank_SOURCES = main.c xfishtank.h fishes.h \ bubbles.h compact.h vroot.h \ wmctrl.c wmctrl.h \ transwindow.c transwindow.h \ utils.c utils.h \ ixpm.c ixpm.h \ ui.c ui.h \ debug.h test1.sh xfishtank_CPPFLAGS = $(GTK_CFLAGS) $(X11_CFLAGS) -rdynamic xfishtank_LDADD = $(GTK_LIBS) $(X11_LIBS) if MAKESELFREP xfishtank_CPPFLAGS += -DSELFREP endif TESTS = test1.sh changelog.inc: $(top_srcdir)/ChangeLog $(TOCC) $(TOCC) < $(top_srcdir)/ChangeLog > $@ xfishtank-main.$(OBJEXT): changelog.inc tarfile.inc desktopdir = $(datadir)/applications desktop_DATA = xfishtank.desktop appicondir=$(datadir)/pixmaps appicon_DATA=xfishtank.png ui_xml.h: ui.xml @echo "Creating $@ from $<" $(top_srcdir)/src/gen_ui_xml.sh $(top_srcdir) CLEANFILES = ui_xml.h changelog.inc tarfile.inc toascii.c toascii