Makefile.am
author Akos Ladanyi <ladanyi@tmit.bme.hu>
Mon, 07 Jul 2008 14:54:54 +0100
changeset 2 fdb8a163000f
child 5 390d05b2d25c
permissions -rw-r--r--
Use libintl.h instead of locale.h.
     1 AM_CPPFLAGS = -I$(top_srcdir) -DLOCALEDIR=\""$(datadir)/locale"\"
     2 
     3 SUBDIRS = po m4
     4 
     5 bin_PROGRAMS = glemon
     6 BUILT_SOURCES = guipixbufs.h
     7 CLEANFILES = guipixbufs.h
     8 
     9 glemon_SOURCES = \
    10 	all_include.h \
    11 	algobox.cc \
    12 	algobox.h \
    13 	algowin.cc \
    14 	algowin.h \
    15 	gdc-broken_edge.cc \
    16 	graph_displayer_canvas.cc \
    17 	graph_displayer_canvas.h \
    18 	graph_displayer_canvas-edge.cc \
    19 	graph_displayer_canvas-event.cc \
    20 	graph_displayer_canvas-node.cc \
    21 	graph_displayer_canvas-zoom.cc \
    22 	graph-displayer.cc \
    23 	kruskalbox.cc \
    24 	kruskalbox.h \
    25 	main_win.cc \
    26 	main_win.h \
    27 	mapstorage.cc \
    28 	mapstorage.h \
    29 	map_win.cc \
    30 	map_win.h \
    31 	mapselector.cc \
    32 	mapselector.h \
    33 	nbtab.h \
    34 	nbtab.cc \
    35 	new_map_win.cc \
    36 	new_map_win.h \
    37 	xymap.h \
    38 	gui_reader.h \
    39 	gui_reader.cc \
    40 	gui_writer.h \
    41 	gui_writer.cc \
    42 	xml.h \
    43 	guipixbufs.h \
    44 	i18n.h \
    45 	gettext.h \
    46 	design_win.h \
    47 	design_win.cc \
    48 	dijkstrabox.h \
    49 	dijkstrabox.cc \
    50 	file_import_dialog.h \
    51 	file_import_dialog.cc \
    52 	map_value.h \
    53 	map_value.cc \
    54 	map_value_map.h \
    55 	map_value_map.cc \
    56 	save_details_widget.h \
    57 	save_details_widget.cc \
    58 	save_details_dialog.h \
    59 	save_details_dialog.cc \
    60 	io_helper.h \
    61 	io_helper.cc \
    62 	background_chooser_dialog.h \
    63 	background_chooser_dialog.cc \
    64 	eps_win.h \
    65 	eps_win.cc
    66 
    67 glemon_CXXFLAGS = $(GTK_CFLAGS) $(LEMON_CFLAGS)
    68 # glemon_LDFLAGS = $(GTK_LIBS) $(LEMON_LIBS)
    69 glemon_LDADD = $(GTK_LIBS) $(LEMON_LIBS) $(LIBINTL)
    70 
    71 IMAGES = \
    72 	icons/addlink.png \
    73 	icons/addnode.png \
    74 	icons/delete.png \
    75 	icons/editlink.png \
    76 	icons/editnode.png \
    77 	icons/move.png \
    78 	icons/newmap.png \
    79 	icons/eps.png
    80 
    81 VARIABLES = \
    82 	gui_icons_addlink $(srcdir)/icons/addlink.png \
    83 	gui_icons_addnode $(srcdir)/icons/addnode.png \
    84 	gui_icons_delete $(srcdir)/icons/delete.png \
    85 	gui_icons_editlink $(srcdir)/icons/editlink.png \
    86 	gui_icons_editnode $(srcdir)/icons/editnode.png \
    87 	gui_icons_move $(srcdir)/icons/move.png \
    88 	gui_icons_newmap $(srcdir)/icons/newmap.png \
    89 	gui_icons_eps $(srcdir)/icons/eps.png
    90 	
    91 guipixbufs.h: $(IMAGES)
    92 	gdk-pixbuf-csource \
    93 	--raw --build-list $(VARIABLES) > guipixbufs.h ||  \
    94 	( rm -f guipixbufs.h && false )
    95 
    96 EXTRA_DIST = \
    97 	$(IMAGES) \
    98 	guipixbufs.h \
    99 	glemon.spec \
   100 	AUTHORS \
   101 	COPYING \
   102 	LICENSE \
   103 	NEWS \
   104 	README \
   105 	ABOUT-NLS
   106 
   107 MRPROPERFILES = \
   108 	Makefile.in \
   109 	configure \
   110 	config.h.in \
   111 	aclocal.m4 \
   112 	ABOUT-NLS \
   113 	m4/Makefile.in \
   114 	m4/lib-link.m4 \
   115 	m4/printf-posix.m4 \
   116 	m4/uintmax_t.m4 \
   117 	m4/signed.m4 \
   118 	m4/iconv.m4 \
   119 	m4/inttypes.m4 \
   120 	m4/longlong.m4 \
   121 	m4/glibc21.m4 \
   122 	m4/inttypes_h.m4 \
   123 	m4/codeset.m4 \
   124 	m4/longdouble.m4 \
   125 	m4/nls.m4 \
   126 	m4/intmax.m4 \
   127 	m4/lib-prefix.m4 \
   128 	m4/glibc2.m4 \
   129 	m4/xsize.m4 \
   130 	m4/lcmessage.m4 \
   131 	m4/lib-ld.m4 \
   132 	m4/ulonglong.m4 \
   133 	m4/wint_t.m4 \
   134 	m4/progtest.m4 \
   135 	m4/inttypes-pri.m4 \
   136 	m4/stdint_h.m4 \
   137 	m4/intdiv0.m4 \
   138 	m4/isc-posix.m4 \
   139 	m4/po.m4 \
   140 	m4/size_max.m4 \
   141 	m4/gettext.m4 \
   142 	m4/wchar_t.m4 \
   143 	po/Rules-quot \
   144 	po/en@quot.header \
   145 	po/insert-header.sin \
   146 	po/quot.sed \
   147 	po/en@boldquot.header \
   148 	po/boldquot.sed \
   149 	po/Makevars.template \
   150 	po/remove-potcdate.sin \
   151 	po/Makefile.in.in \
   152 	build-aux/mkinstalldirs \
   153 	build-aux/config.rpath \
   154 	build-aux/depcomp \
   155 	build-aux/missing \
   156 	build-aux/config.guess \
   157 	build-aux/config.sub \
   158 	build-aux/install-sh
   159 
   160 mrproper:
   161 	$(MAKE) $(AM_MAKEFLAGS) maintainer-clean
   162 	-rm -f $(MRPROPERFILES)
   163 
   164 rpm: dist
   165 	rpmbuild -ta $(PACKAGE)-$(VERSION).tar.gz
   166 
   167 .PHONY: mrproper