"make dist" fixes
[geeqie.git] / src / Makefile.am
1 SUBDIRS = icons
2 DIST_SUBDIRS = icons
3
4 AM_CFLAGS =                             \
5         $(GLIB_CFLAGS) $(GTK_CFLAGS)    \
6         $(LCMS_CFLAGS)                  \
7         $(EXIV2_CFLAGS)                 \
8         -I$(top_srcdir)                 \
9         -I$(top_builddir)
10
11
12 AM_CXXFLAGS =                           \
13         $(GLIB_CFLAGS) $(GTK_CFLAGS)    \
14         $(LCMS_CFLAGS)                  \
15         $(EXIV2_CFLAGS)                 \
16         -I$(top_srcdir)                 \
17         -I$(top_builddir)
18
19 module_SLIK = \
20         intl.h          \
21         gettext.h       \
22         ui_bookmark.c   \
23         ui_bookmark.h   \
24         ui_fileops.c    \
25         ui_fileops.h    \
26         ui_help.c       \
27         ui_help.h       \
28         ui_menu.c       \
29         ui_menu.h       \
30         ui_misc.c       \
31         ui_misc.h       \
32         ui_pathsel.c    \
33         ui_pathsel.h    \
34         ui_spinner.c    \
35         ui_spinner.h    \
36         ui_tabcomp.c    \
37         ui_tabcomp.h    \
38         ui_tree_edit.c  \
39         ui_tree_edit.h  \
40         ui_utildlg.c    \
41         ui_utildlg.h
42
43 extra_ICONS = \
44         ui_spinner.png  \
45         ui_tabcomp.png
46
47 ICON_PAIRS = \
48         icon_spinner            $(srcdir)/ui_spinner.png        \
49         icon_tabcomp            $(srcdir)/ui_tabcomp.png
50
51 ui_icons.h: $(extra_ICONS) Makefile.in
52         @(echo '/* Auto generated file, do not edit */'; echo; \
53          echo '#ifndef UI_ICONS_H'; \
54          echo '#define UI_ICONS_H'; echo; \
55          $(GDK_PIXBUF_CSOURCE) --raw --extern --build-list $(ICON_PAIRS); \
56          echo '#endif /* UI_ICONS_H */') > $@ || echo "!!! Failed to generate $@ !!!"
57
58 ClayRGB1998_icc.h: ClayRGB1998.icc
59         echo "/*" > $@ 
60         echo " * This file was generated from ClayRGB1998.icc, DO NOT EDIT " >> $@
61         echo " * http://www.argyllcms.com/ClayRGB1998.zip " >> $@
62         echo " */ " >> $@
63         xxd -i $^ >> $@
64
65 ui_spinner.o: ui_icons.h
66
67
68 noinst_DATA = ui_icons.h
69 CLEANFILES = $(noinst_DATA)
70                                                                                                                      
71 extra_SLIK = \
72         $(extra_ICONS)
73
74 bin_PROGRAMS = geeqie
75
76 geeqie_SOURCES = \
77         $(module_SLIK)  \
78         ClayRGB1998.icc \
79         ClayRGB1998_icc.h \
80         advanced_exif.c \
81         advanced_exif.h \
82         bar.c           \
83         bar.h           \
84         bar_comment.c   \
85         bar_comment.h   \
86         bar_histogram.c \
87         bar_histogram.h \
88         bar_keywords.c  \
89         bar_keywords.h  \
90         bar_exif.c      \
91         bar_exif.h      \
92         bar_sort.c      \
93         bar_sort.h      \
94         cache.c         \
95         cache.h         \
96         cache-loader.c  \
97         cache-loader.h  \
98         cache_maint.c   \
99         cache_maint.h   \
100         cellrenderericon.c      \
101         cellrenderericon.h      \
102         collect.c       \
103         collect.h       \
104         collect-dlg.c   \
105         collect-dlg.h   \
106         collect-io.c    \
107         collect-io.h    \
108         collect-table.c \
109         collect-table.h \
110         color-man.c     \
111         color-man.h     \
112         compat.c        \
113         compat.h        \
114         debug.c         \
115         debug.h         \
116         desktop_file.c  \
117         desktop_file.h  \
118         dnd.c           \
119         dnd.h           \
120         dupe.c          \
121         dupe.h          \
122         editors.c       \
123         editors.h       \
124         exif.c          \
125         exif.h          \
126         exif-int.h      \
127         exif-common.c   \
128         exiv2.cc        \
129         filecache.c     \
130         filecache.h     \
131         filedata.c      \
132         filedata.h      \
133         filefilter.c    \
134         filefilter.h    \
135         gq-marshal.c    \
136         gq-marshal.h    \
137         gq-marshal.list \
138         format_canon.c  \
139         format_canon.h  \
140         format_fuji.c   \
141         format_fuji.h   \
142         format_nikon.c  \
143         format_nikon.h  \
144         format_olympus.c        \
145         format_olympus.h        \
146         format_raw.c    \
147         format_raw.h    \
148         fullscreen.c    \
149         fullscreen.h    \
150         histogram.c     \
151         histogram.h     \
152         history_list.c  \
153         history_list.h  \
154         image.c         \
155         image.h         \
156         image-load.c    \
157         image-load.h    \
158         image-overlay.c \
159         image-overlay.h \
160         img-view.c      \
161         img-view.h      \
162         layout.c        \
163         layout.h        \
164         layout_config.c \
165         layout_config.h \
166         layout_image.c  \
167         layout_image.h  \
168         layout_util.c   \
169         layout_util.h   \
170         lirc.c          \
171         lirc.h          \
172         logwindow.c     \
173         logwindow.h     \
174         main.c          \
175         main.h          \
176         md5-util.c      \
177         md5-util.h      \
178         menu.c          \
179         menu.h          \
180         metadata.c      \
181         metadata.h      \
182         misc.c          \
183         misc.h          \
184         options.c       \
185         options.h       \
186         pan-calendar.c  \
187         pan-folder.c    \
188         pan-grid.c      \
189         pan-item.c      \
190         pan-timeline.c  \
191         pan-types.h     \
192         pan-util.c      \
193         pan-view.c      \
194         pan-view.h      \
195         pixbuf-renderer.c       \
196         pixbuf-renderer.h       \
197         pixbuf_util.c   \
198         pixbuf_util.h   \
199         preferences.c   \
200         preferences.h   \
201         print.c         \
202         print.h         \
203         remote.c        \
204         remote.h        \
205         rcfile.c        \
206         rcfile.h        \
207         search.c        \
208         search.h        \
209         secure_save.c   \
210         secure_save.h   \
211         similar.c       \
212         similar.h       \
213         slideshow.c     \
214         slideshow.h     \
215         typedefs.h      \
216         thumb.c         \
217         thumb.h         \
218         thumb_standard.c        \
219         thumb_standard.h        \
220         trash.c         \
221         trash.h         \
222         uri_utils.c     \
223         uri_utils.h     \
224         utilops.c       \
225         utilops.h       \
226         view_dir.c      \
227         view_dir.h      \
228         view_dir_list.c \
229         view_dir_list.h \
230         view_dir_tree.c \
231         view_dir_tree.h \
232         view_file.c     \
233         view_file.h     \
234         view_file_list.c        \
235         view_file_list.h        \
236         view_file_icon.c        \
237         view_file_icon.h        \
238         window.c        \
239         window.h
240
241 geeqie_LDADD = $(GTK_LIBS) $(GLIB_LIBS) $(INTLLIBS) $(LCMS_LIBS) $(EXIV2_LIBS)
242
243 EXTRA_DIST = \
244         $(extra_SLIK)
245
246 gq-marshal.h: gq-marshal.list
247         $(GLIB_GENMARSHAL) --prefix=gq_marshal $(srcdir)/gq-marshal.list --header >$@
248
249 gq-marshal.c: gq-marshal.list
250         (echo "#include \"gq-marshal.h\"" ; $(GLIB_GENMARSHAL) --prefix=gq_marshal $(srcdir)/gq-marshal.list --body ) >$@
251
252
253