Makefile.am
author hegyi
Tue, 20 Feb 2007 15:08:30 +0000
branchfastopen
changeset 204 8fec6a6472fe
parent 184 4e8704aae278
child 191 af2ed974ab68
permissions -rw-r--r--
The much faster way.
     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 	background_chooser_dialog.h \
    51 	background_chooser_dialog.cc
    52 
    53 glemon_CXXFLAGS = $(GTK_CFLAGS) $(LEMON_CFLAGS)
    54 # glemon_LDFLAGS = $(GTK_LIBS) $(LEMON_LIBS)
    55 glemon_LDADD = $(GTK_LIBS) $(LEMON_LIBS) $(LIBINTL)
    56 
    57 IMAGES = \
    58 	icons/addlink.png \
    59 	icons/addnode.png \
    60 	icons/delete.png \
    61 	icons/editlink.png \
    62 	icons/editnode.png \
    63 	icons/move.png \
    64 	icons/newmap.png
    65 
    66 VARIABLES = \
    67 	gui_icons_addlink $(srcdir)/icons/addlink.png \
    68 	gui_icons_addnode $(srcdir)/icons/addnode.png \
    69 	gui_icons_delete $(srcdir)/icons/delete.png \
    70 	gui_icons_editlink $(srcdir)/icons/editlink.png \
    71 	gui_icons_editnode $(srcdir)/icons/editnode.png \
    72 	gui_icons_move $(srcdir)/icons/move.png \
    73 	gui_icons_newmap $(srcdir)/icons/newmap.png
    74 
    75 guipixbufs.h: $(IMAGES)
    76 	gdk-pixbuf-csource \
    77 	--raw --build-list $(VARIABLES) > guipixbufs.h ||  \
    78 	( rm -f guipixbufs.h && false )
    79 
    80 EXTRA_DIST = \
    81 	$(IMAGES) \
    82 	guipixbufs.h \
    83 	glemon.spec \
    84 	AUTHORS \
    85 	COPYING \
    86 	LICENSE \
    87 	NEWS \
    88 	README \
    89 	ABOUT-NLS
    90 
    91 MRPROPERFILES = \
    92 	Makefile.in \
    93 	configure \
    94 	config.h.in \
    95 	aclocal.m4 \
    96 	ABOUT-NLS \
    97 	m4/Makefile.in \
    98 	m4/lib-link.m4 \
    99 	m4/printf-posix.m4 \
   100 	m4/uintmax_t.m4 \
   101 	m4/signed.m4 \
   102 	m4/iconv.m4 \
   103 	m4/inttypes.m4 \
   104 	m4/longlong.m4 \
   105 	m4/glibc21.m4 \
   106 	m4/inttypes_h.m4 \
   107 	m4/codeset.m4 \
   108 	m4/longdouble.m4 \
   109 	m4/nls.m4 \
   110 	m4/intmax.m4 \
   111 	m4/lib-prefix.m4 \
   112 	m4/glibc2.m4 \
   113 	m4/xsize.m4 \
   114 	m4/lcmessage.m4 \
   115 	m4/lib-ld.m4 \
   116 	m4/ulonglong.m4 \
   117 	m4/wint_t.m4 \
   118 	m4/progtest.m4 \
   119 	m4/inttypes-pri.m4 \
   120 	m4/stdint_h.m4 \
   121 	m4/intdiv0.m4 \
   122 	m4/isc-posix.m4 \
   123 	m4/po.m4 \
   124 	m4/size_max.m4 \
   125 	m4/gettext.m4 \
   126 	m4/wchar_t.m4 \
   127 	po/Rules-quot \
   128 	po/en@quot.header \
   129 	po/insert-header.sin \
   130 	po/quot.sed \
   131 	po/en@boldquot.header \
   132 	po/boldquot.sed \
   133 	po/Makevars.template \
   134 	po/remove-potcdate.sin \
   135 	po/Makefile.in.in \
   136 	build-aux/mkinstalldirs \
   137 	build-aux/config.rpath \
   138 	build-aux/depcomp \
   139 	build-aux/missing \
   140 	build-aux/config.guess \
   141 	build-aux/config.sub \
   142 	build-aux/install-sh
   143 
   144 mrproper:
   145 	$(MAKE) $(AM_MAKEFLAGS) maintainer-clean
   146 	-rm -f $(MRPROPERFILES)
   147 
   148 rpm: dist
   149 	rpmbuild -ta $(PACKAGE)-$(VERSION).tar.gz
   150 
   151 .PHONY: mrproper