Skip to content
Snippets Groups Projects
  • Nick Schermer's avatar
    57c4fd48
    Build manual documentation during make. · 57c4fd48
    Nick Schermer authored
    
    This will generate the manual during make if --enable-gen-doc
    is used and only ship the generated html files in the dist
    tarball. It will automatically pick up new translations (see
    bug #6036) and print xml valid warnings which are useful for
    translators to valid their translations.
    
    All documentation is now also installed in @docdir@ (bug #5810).
    
    Symlink to C images if the language does not ship its own
    screenshots. This will reduce the tarball and installation
    size a lot.
    
    To keep the patch small, the existing translation directories are not
    removed. Please do this after appying the patch:
      git rm -fr docs/manual/{C,da,es,eu,fr,gl,it,ja,nl,pl,ru,tr,zh_TW}
    Optionally the po-doc/ChangeLog files should be deleted too.
    
    Signed-off-by: default avatarNick Schermer <nick@xfce.org>
    Signed-off-by: default avatarJannis Pohlmann <jannis@xfce.org>
    57c4fd48
    History
    Build manual documentation during make.
    Nick Schermer authored
    
    This will generate the manual during make if --enable-gen-doc
    is used and only ship the generated html files in the dist
    tarball. It will automatically pick up new translations (see
    bug #6036) and print xml valid warnings which are useful for
    translators to valid their translations.
    
    All documentation is now also installed in @docdir@ (bug #5810).
    
    Symlink to C images if the language does not ship its own
    screenshots. This will reduce the tarball and installation
    size a lot.
    
    To keep the patch small, the existing translation directories are not
    removed. Please do this after appying the patch:
      git rm -fr docs/manual/{C,da,es,eu,fr,gl,it,ja,nl,pl,ru,tr,zh_TW}
    Optionally the po-doc/ChangeLog files should be deleted too.
    
    Signed-off-by: default avatarNick Schermer <nick@xfce.org>
    Signed-off-by: default avatarJannis Pohlmann <jannis@xfce.org>
Makefile.am 2.19 KiB
# $Id$

SUBDIRS =								\
	icons								\
	pixmaps								\
	po								\
	po-doc								\
	tdb								\
	thunarx								\
	thunar								\
	docs								\
	examples							\
	plugins

distclean-local:
	rm -rf *.spec *.cache *~

rpm: dist
	rpmbuild -ta $(PACKAGE)-$(VERSION).tar.gz
	@rm -f $(PACKAGE)-$(VERSION).tar.gz

libexec_SCRIPTS =							\
	ThunarBulkRename						\
	ThunarHelp

ThunarBulkRename: ThunarBulkRename.in Makefile
	$(AM_V_GEN) (							\
		rm -f ThunarBulkRename.gen ThunarBulkRename		\
		&& sed -e "s,\@bindir\@,$(bindir),g" 			\
			< $(srcdir)/ThunarBulkRename.in			\
			> ThunarBulkRename.gen				\
		&& mv ThunarBulkRename.gen ThunarBulkRename 		\
	)

ThunarHelp: ThunarHelp.in Makefile
	$(AM_V_GEN) (							\
		rm -f ThunarHelp.gen ThunarHelp				\
		&& sed -e "s,\@datadir\@,$(datadir),g" 			\
			< $(srcdir)/ThunarHelp.in			\
			> ThunarHelp.gen				\
		&& mv ThunarHelp.gen ThunarHelp				\
	)

desktopdir = $(datadir)/applications
desktop_in_in_files = 							\
	Thunar.desktop.in.in						\
	Thunar-bulk-rename.desktop.in.in				\
	Thunar-folder-handler.desktop.in.in
desktop_in_files = $(desktop_in_in_files:.desktop.in.in=.desktop.in)
%.desktop.in: %.desktop.in.in
	$(AM_V_GEN) sed -e "s,\@libexecdir\@,$(libexecdir),g" < $< > $@
desktop_DATA = $(desktop_in_files:.desktop.in=.desktop)
@INTLTOOL_DESKTOP_RULE@

if HAVE_DBUS
servicedir = $(datadir)/dbus-1/services
service_in_files = org.xfce.FileManager.service.in org.xfce.Thunar.service.in
service_DATA = $(service_in_files:.service.in=.service)
%.service: %.service.in
	$(AM_V_GEN) sed -e "s,\@bindir\@,$(bindir),g" < $< > $@
endif

EXTRA_DIST =								\
	FAQ								\
	HACKING								\
	ThunarBulkRename.in						\
	Thunar.spec.in							\
	ThunarHelp.in							\
	intltool-extract.in						\
	intltool-merge.in						\
	intltool-update.in						\
	$(desktop_in_in_files)						\
	$(service_in_files)

DISTCLEANFILES =							\
	ThunarBulkRename						\
	Thunar.spec							\
	ThunarHelp							\
	intltool-extract						\
	intltool-merge							\
	intltool-update							\
	$(desktop_in_files)						\
	$(desktop_DATA)							\
	$(service_DATA)

DISTCHECK_CONFIGURE_FLAGS =						\
	--enable-gtk-doc						\
	--enable-gen-doc

# vi:set ts=8 sw=8 noet ai nocindent syntax=automake: