1 ## Process this file with automake to produce Makefile.in
3 SUBDIRS = ctags scintilla src plugins icons po doc data tests
7 ACLOCAL_AMFLAGS = -I m4
8 AM_DISTCHECK_CONFIGURE_FLAGS = --enable-api-docs --enable-html-docs --enable-pdf-docs \
17 scripts/gen-api-gtkdoc.py \
30 rm -rf $(DESTDIR)$(pkgdatadir);
32 # manually install some files under another name
34 $(mkinstalldirs) $(DESTDIR)$(pkgdatadir)
35 $(INSTALL_DATA) $(srcdir)/COPYING $(DESTDIR)$(pkgdatadir)/GPL-2
37 $(INSTALL_DATA) $(srcdir)/AUTHORS $(DESTDIR)$(prefix)/Authors.txt
38 $(INSTALL_DATA) $(srcdir)/ChangeLog $(DESTDIR)$(prefix)/Changelog.txt
39 $(INSTALL_DATA) $(srcdir)/COPYING $(DESTDIR)$(prefix)/Copying.txt
40 $(INSTALL_DATA) $(srcdir)/README $(DESTDIR)$(prefix)/Readme.txt
41 $(INSTALL_DATA) $(srcdir)/NEWS $(DESTDIR)$(prefix)/News.txt
42 $(INSTALL_DATA) $(srcdir)/THANKS $(DESTDIR)$(prefix)/Thanks.txt
43 $(INSTALL_DATA) $(srcdir)/TODO $(DESTDIR)$(prefix)/Todo.txt
47 @if test -d "$(top_srcdir)/.git"; then \
48 echo ' GEN ChangeLog'; \
49 ( cd "$(top_srcdir)" && \
50 echo '# Generated by Makefile. Do not edit.' && echo && \
51 GIT_CONFIG_NOSYSTEM=1 HOME="$(srcdir)" XDG_CONFIG_HOME="$(srcdir)" \
52 git log --stat 0.21.0.. ) > ChangeLog.tmp \
53 && mv -f ChangeLog.tmp "$(distdir)/ChangeLog" \
54 || ( rm -f ChangeLog.tmp ; \
55 echo 'Failed to generate ChangeLog' >&2 ); \
57 echo 'A git clone is required to generate a ChangeLog' >&2; \
62 if test -f $(PACKAGE)-$(VERSION).tar.gz; then \
63 gpg --detach-sign --digest-algo SHA512 $(PACKAGE)-$(VERSION).tar.gz; fi
64 if test -f $(PACKAGE)-$(VERSION).tar.bz2; then \
65 gpg --detach-sign --digest-algo SHA512 $(PACKAGE)-$(VERSION).tar.bz2; fi
69 rpmbuild -ta $(distdir).tar.gz
72 pkgconfig_DATA = geany.pc
73 pkgconfigdir = $(libdir)/pkgconfig
75 desktopdir = $(datadir)/applications
76 desktop_in_files = geany.desktop.in
77 desktop_DATA = $(desktop_in_files:.desktop.in=.desktop)
79 $(desktop_DATA): $(desktop_in_files) $(wildcard $(top_srcdir)/po/*.po)
80 $(AM_V_GEN)$(MSGFMT) --desktop --template $< -d $(top_srcdir)/po -o $@