Merge pull request #3161 from techee/markdown_sync
[geany-mirror.git] / Makefile.am
blobe49133098470ae5a00903c3b569aa877f593e79f
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         geany.desktop.in \
20         geany.pc.in \
21         ChangeLog.pre-1-22 \
22         HACKING \
23         README.I18N \
24         README.Packagers \
25         $(WIN32_BUILD_FILES)
27 DISTCLEANFILES = \
28         geany.desktop
30 uninstall-local:
31         rm -rf $(DESTDIR)$(pkgdatadir);
33 # manually install some files under another name
34 install-data-local:
35         $(mkinstalldirs) $(DESTDIR)$(pkgdatadir)
36         $(INSTALL_DATA) $(srcdir)/COPYING $(DESTDIR)$(pkgdatadir)/GPL-2
37 if MINGW
38         $(INSTALL_DATA) $(srcdir)/AUTHORS $(DESTDIR)$(prefix)/Authors.txt
39         $(INSTALL_DATA) $(srcdir)/ChangeLog $(DESTDIR)$(prefix)/Changelog.txt
40         $(INSTALL_DATA) $(srcdir)/COPYING $(DESTDIR)$(prefix)/Copying.txt
41         $(INSTALL_DATA) $(srcdir)/README $(DESTDIR)$(prefix)/Readme.txt
42         $(INSTALL_DATA) $(srcdir)/NEWS $(DESTDIR)$(prefix)/News.txt
43         $(INSTALL_DATA) $(srcdir)/THANKS $(DESTDIR)$(prefix)/Thanks.txt
44         $(INSTALL_DATA) $(srcdir)/TODO $(DESTDIR)$(prefix)/Todo.txt
45 endif
47 dist-hook:
48         @if test -d "$(top_srcdir)/.git"; then \
49                 echo '  GEN    ChangeLog'; \
50                 ( cd "$(top_srcdir)" && \
51                   echo '# Generated by Makefile. Do not edit.' && echo && \
52                   GIT_CONFIG_NOSYSTEM=1 HOME="$(srcdir)" XDG_CONFIG_HOME="$(srcdir)" \
53                   git log --stat 0.21.0.. ) > ChangeLog.tmp \
54                 && mv -f ChangeLog.tmp "$(distdir)/ChangeLog" \
55                 || ( rm -f ChangeLog.tmp ; \
56                      echo 'Failed to generate ChangeLog' >&2 ); \
57         else \
58                 echo 'A git clone is required to generate a ChangeLog' >&2; \
59         fi
62 sign:
63         if test -f $(PACKAGE)-$(VERSION).tar.gz; then \
64                 gpg --detach-sign --digest-algo SHA512 $(PACKAGE)-$(VERSION).tar.gz; fi
65         if test -f $(PACKAGE)-$(VERSION).tar.bz2; then \
66                 gpg --detach-sign --digest-algo SHA512 $(PACKAGE)-$(VERSION).tar.bz2; fi
69 rpm: dist
70         rpmbuild -ta $(distdir).tar.gz
73 pkgconfig_DATA = geany.pc
74 pkgconfigdir = $(libdir)/pkgconfig
76 desktopdir = $(datadir)/applications
77 desktop_in_files = geany.desktop.in
78 desktop_DATA = $(desktop_in_files:.desktop.in=.desktop)
80 $(desktop_DATA): $(desktop_in_files) $(wildcard $(top_srcdir)/po/*.po)
81         $(AM_V_GEN)$(MSGFMT) --desktop --template $< -d $(top_srcdir)/po -o $@