Makefile.am
branchgui
changeset 100 ad84ee331106
parent 99 2842e7d8f9a2
child 106 853dd852abc7
     1.1 --- a/Makefile.am	Sat Dec 17 21:51:10 2005 +0000
     1.2 +++ b/Makefile.am	Sun Dec 18 01:51:03 2005 +0000
     1.3 @@ -1,10 +1,9 @@
     1.4 -SUBDIRS = icons
     1.5 -
     1.6  AM_CPPFLAGS = -I$(top_srcdir)
     1.7  LDADD = $(top_builddir)/lemon/libemon.la
     1.8  
     1.9 -
    1.10  bin_PROGRAMS = glemon
    1.11 +BUILT_SOURCES = guipixbufs.h
    1.12 +CLEANFILES = guipixbufs.h
    1.13  
    1.14  glemon_SOURCES = \
    1.15  	all_include.h \
    1.16 @@ -33,8 +32,32 @@
    1.17  	gui_writer.h \
    1.18  	gui_writer.cc \
    1.19  	xml.h \
    1.20 -	icons/guipixbufs.h
    1.21 -
    1.22 +	guipixbufs.h
    1.23  
    1.24  glemon_CXXFLAGS = $(GTK_CFLAGS)
    1.25  glemon_LDFLAGS = $(GTK_LIBS)
    1.26 +
    1.27 +IMAGES = \
    1.28 +	icons/addlink.png \
    1.29 +	icons/addnode.png \
    1.30 +	icons/delete.png \
    1.31 +	icons/editlink.png \
    1.32 +	icons/editnode.png \
    1.33 +	icons/move.png \
    1.34 +	icons/newmap.png
    1.35 +
    1.36 +VARIABLES = \
    1.37 +	gui_icons_addlink $(srcdir)/icons/addlink.png \
    1.38 +	gui_icons_addnode $(srcdir)/icons/addnode.png \
    1.39 +	gui_icons_delete $(srcdir)/icons/delete.png \
    1.40 +	gui_icons_editlink $(srcdir)/icons/editlink.png \
    1.41 +	gui_icons_editnode $(srcdir)/icons/editnode.png \
    1.42 +	gui_icons_move $(srcdir)/icons/move.png \
    1.43 +	gui_icons_newmap $(srcdir)/icons/newmap.png
    1.44 +
    1.45 +guipixbufs.h: $(IMAGES)
    1.46 +	gdk-pixbuf-csource \
    1.47 +	--raw --build-list $(VARIABLES) > guipixbufs.h ||  \
    1.48 +	( rm -f guipixbufs.h && false )
    1.49 +
    1.50 +EXTRA_DIST = $(IMAGES) guipixbufs.h