Prompt to overwrite in Windows Save As dialog
[geany-mirror.git] / Makefile.am
blobd3035f028da489664eaba0f52c034d420f910226
1 ## Process this file with automake to produce Makefile.in
3 SUBDIRS = tagmanager scintilla src plugins icons po doc
5 AUTOMAKE_OPTIONS =      1.7
7 ACLOCAL_AMFLAGS = -I m4
9 WIN32_BUILD_FILES = \
10         geany_private.rc \
11         win32-config.h \
12         makefile.win32
14 SYS_DATA_FILES = \
15         data/c99.tags \
16         data/php.tags \
17         data/python.tags \
18         data/pascal.tags \
19         data/html_entities.tags \
20         $(srcdir)/data/filetypes.* \
21         data/filetype_extensions.conf \
22         data/snippets.conf \
23         data/ui_toolbar.xml \
24         $(srcdir)/data/templates/* \
25         $(srcdir)/data/templates/files/* \
26         $(srcdir)/data/colorschemes/* \
27         $(top_srcdir)/data/geany.glade \
28         $(top_srcdir)/data/geany.gtkrc
30 EXTRA_DIST = \
31         autogen.sh \
32         wscript \
33         waf \
34         geany.desktop.in \
35         geany.pc.in \
36         geany.spec \
37         ChangeLog.pre-0-17 \
38         ChangeLog.pre-1-22 \
39         HACKING \
40         README.I18N \
41         README.Packagers \
42         po/intl_stats.sh \
43         intltool-extract.in \
44         intltool-merge.in \
45         intltool-update.in \
46         $(SYS_DATA_FILES) \
47         $(WIN32_BUILD_FILES)
49 DISTCLEANFILES = \
50         geany.desktop \
51         intltool-extract \
52         intltool-merge \
53         intltool-update
55 uninstall-local:
56         rm -rf $(DESTDIR)$(pkgdatadir);
58 install-data-local: install-data-only
59         @$(NORMAL_INSTALL)
61 install-data-only:
62         @$(NORMAL_INSTALL)
63         $(mkinstalldirs) $(DESTDIR)$(pkgdatadir); \
64         $(INSTALL_DATA) $(srcdir)/COPYING $(DESTDIR)$(pkgdatadir)/GPL-2; \
65         for file in $(srcdir)/data/*; do \
66           if test -f $$file; then \
67             $(INSTALL_DATA) $$file $(DESTDIR)$(pkgdatadir)/; \
68           fi \
69         done
70         $(mkinstalldirs) $(DESTDIR)$(pkgdatadir)/templates;
71         for file in $(srcdir)/data/templates/*; do \
72           if test -f $$file; then \
73             $(INSTALL_DATA) $$file $(DESTDIR)$(pkgdatadir)/templates/; \
74           fi \
75         done
76         $(mkinstalldirs) $(DESTDIR)$(pkgdatadir)/templates/files;
77         for file in $(srcdir)/data/templates/files/*; do \
78           if test -f $$file; then \
79             $(INSTALL_DATA) $$file $(DESTDIR)$(pkgdatadir)/templates/files/; \
80           fi \
81         done
82         $(mkinstalldirs) $(DESTDIR)$(pkgdatadir)/colorschemes;
83         for file in $(srcdir)/data/colorschemes/*; do \
84           if test -f $$file; then \
85             $(INSTALL_DATA) $$file $(DESTDIR)$(pkgdatadir)/colorschemes/; \
86           fi \
87         done
90 dist-hook:
91         @if test -d "$(top_srcdir)/.git"; then \
92                 echo '  GEN    ChangeLog'; \
93                 ( cd "$(top_srcdir)" && \
94                   echo '# Generated by Makefile. Do not edit.' && echo && \
95                   git log --stat 0.21.0.. ) > ChangeLog.tmp \
96                 && mv -f ChangeLog.tmp "$(distdir)/ChangeLog" \
97                 || ( rm -f ChangeLog.tmp ; \
98                      echo 'Failed to generate ChangeLog' >&2 ); \
99         else \
100                 echo 'A git clone is required to generate a ChangeLog' >&2; \
101         fi
104 sign:
105         if test -f $(PACKAGE)-$(VERSION).tar.gz; then \
106                 gpg --detach-sign --digest-algo SHA512 $(PACKAGE)-$(VERSION).tar.gz; fi
107         if test -f $(PACKAGE)-$(VERSION).tar.bz2; then \
108                 gpg --detach-sign --digest-algo SHA512 $(PACKAGE)-$(VERSION).tar.bz2; fi
111 rpm: dist
112         rpmbuild -ta $(distdir).tar.gz
115 pkgconfig_DATA = geany.pc
116 pkgconfigdir = $(libdir)/pkgconfig
118 desktopdir = $(datadir)/applications
119 desktop_in_files = geany.desktop
120 desktop_DATA = $(desktop_in_files:.desktop.in=.desktop)
121 @INTLTOOL_DESKTOP_RULE@