Merge pull request #3273 from techee/anon_rename_fix3
[geany-mirror.git] / Makefile.am
blobd039ac9a8b189008672e715d2b716323b12ab236
1 ## Process this file with automake to produce Makefile.in
3 SUBDIRS = ctags scintilla src plugins icons po doc data tests
5 AUTOMAKE_OPTIONS =      1.7
7 ACLOCAL_AMFLAGS = -I m4
8 AM_DISTCHECK_CONFIGURE_FLAGS = --enable-api-docs --enable-html-docs --enable-pdf-docs \
9                                --enable-gtkdoc-header
11 WIN32_BUILD_FILES = \
12         geany_private.rc \
13         geany.exe.manifest
15 EXTRA_DIST = \
16         autogen.sh \
17         scripts/gen-api-gtkdoc.py \
18         scripts/gen-signallist.sh \
19         scripts/print-tags.py \
20         geany.desktop.in \
21         geany.pc.in \
22         ChangeLog.pre-1-22 \
23         HACKING \
24         README.I18N \
25         README.Packagers \
26         $(WIN32_BUILD_FILES)
28 DISTCLEANFILES = \
29         geany.desktop
31 uninstall-local:
32         rm -rf $(DESTDIR)$(pkgdatadir);
34 # manually install some files under another name
35 install-data-local:
36         $(mkinstalldirs) $(DESTDIR)$(pkgdatadir)
37         $(INSTALL_DATA) $(srcdir)/COPYING $(DESTDIR)$(pkgdatadir)/GPL-2
38 if MINGW
39         $(INSTALL_DATA) $(srcdir)/AUTHORS $(DESTDIR)$(prefix)/Authors.txt
40         $(INSTALL_DATA) $(srcdir)/ChangeLog $(DESTDIR)$(prefix)/Changelog.txt
41         $(INSTALL_DATA) $(srcdir)/COPYING $(DESTDIR)$(prefix)/Copying.txt
42         $(INSTALL_DATA) $(srcdir)/README $(DESTDIR)$(prefix)/Readme.txt
43         $(INSTALL_DATA) $(srcdir)/NEWS $(DESTDIR)$(prefix)/News.txt
44         $(INSTALL_DATA) $(srcdir)/THANKS $(DESTDIR)$(prefix)/Thanks.txt
45         $(INSTALL_DATA) $(srcdir)/TODO $(DESTDIR)$(prefix)/Todo.txt
46 endif
48 dist-hook:
49         @if test -d "$(top_srcdir)/.git"; then \
50                 echo '  GEN    ChangeLog'; \
51                 ( cd "$(top_srcdir)" && \
52                   echo '# Generated by Makefile. Do not edit.' && echo && \
53                   GIT_CONFIG_NOSYSTEM=1 HOME="$(srcdir)" XDG_CONFIG_HOME="$(srcdir)" \
54                   git log --stat 0.21.0.. ) > ChangeLog.tmp \
55                 && mv -f ChangeLog.tmp "$(distdir)/ChangeLog" \
56                 || ( rm -f ChangeLog.tmp ; \
57                      echo 'Failed to generate ChangeLog' >&2 ); \
58         else \
59                 echo 'A git clone is required to generate a ChangeLog' >&2; \
60         fi
63 sign:
64         if test -f $(PACKAGE)-$(VERSION).tar.gz; then \
65                 gpg --detach-sign --digest-algo SHA512 $(PACKAGE)-$(VERSION).tar.gz; fi
66         if test -f $(PACKAGE)-$(VERSION).tar.bz2; then \
67                 gpg --detach-sign --digest-algo SHA512 $(PACKAGE)-$(VERSION).tar.bz2; fi
70 rpm: dist
71         rpmbuild -ta $(distdir).tar.gz
74 pkgconfig_DATA = geany.pc
75 pkgconfigdir = $(libdir)/pkgconfig
77 desktopdir = $(datadir)/applications
78 desktop_in_files = geany.desktop.in
79 desktop_DATA = $(desktop_in_files:.desktop.in=.desktop)
81 $(desktop_DATA): $(desktop_in_files) $(wildcard $(top_srcdir)/po/*.po)
82         $(AM_V_GEN)$(MSGFMT) --desktop --template $< -d $(top_srcdir)/po -o $@