mirror of
https://gitlab.gnome.org/GNOME/gparted
synced 2024-10-30 09:08:28 +00:00
20158f0440
Use AC_ARG_ENABLE() and AS_HELP_STRING() macros to improve handling of the --disable-doc option. Change the names, and sence, of the Autoconf and Automake definitions used to control building of the help documentation. Reasons are: (1) Switch from negative to positive statements which are more natural to comprehend. (2) Insert HELP in the names from *_DOC to *_HELP_DOC as they control building of the documentation in the help subdirectory, not the manual page in the doc directory. Autoconf: HAVE_DISABLE_DOC -> ENABLE_HELP_DOC Automake: DISABLE_DOC -> BUILD_HELP_DOC Bug #734076 - Autodetect parted online partition resizing capability
77 lines
2.2 KiB
Makefile
77 lines
2.2 KiB
Makefile
# Only execute make in the help subdirectory if BUILD_HELP_DOC is set
|
|
if BUILD_HELP_DOC
|
|
SUBDIRS = help compose data doc include po src
|
|
else
|
|
SUBDIRS = compose data doc include po src
|
|
endif
|
|
|
|
@INTLTOOL_DESKTOP_RULE@
|
|
DESKTOP_IN_IN_FILES = gparted.desktop.in.in
|
|
DESKTOP_IN_FILES = gparted.desktop.in
|
|
DESKTOP_FILES =$(DESKTOP_IN_FILES:.desktop.in=.desktop)
|
|
desktopdir = $(datadir)/applications
|
|
desktop_DATA = $(DESKTOP_FILES)
|
|
|
|
@INTLTOOL_XML_RULE@
|
|
APPDATA_IN_FILES = gparted.appdata.xml.in
|
|
APPDATA_FILES =$(APPDATA_IN_FILES:.xml.in=.xml)
|
|
appdatadir = $(datadir)/appdata
|
|
appdata_DATA = $(APPDATA_FILES)
|
|
|
|
sbin_SCRIPTS = gparted
|
|
CLEANFILES = $(sbin_SCRIPTS) $(DESKTOP_IN_FILES)
|
|
|
|
do_subst = sed -e 's,[@]installdir[@],$(sbindir),g' \
|
|
-e 's,[@]gksuprog[@],$(GKSUPROG),g'
|
|
|
|
gparted.desktop.in: gparted.desktop.in.in Makefile
|
|
$(do_subst) < $(srcdir)/gparted.desktop.in.in > gparted.desktop.in
|
|
|
|
gparted: gparted.in Makefile
|
|
$(do_subst) < $(srcdir)/gparted.in > gparted
|
|
chmod +x gparted
|
|
|
|
dist-hook:
|
|
@if test -d "$(srcdir)/.git"; \
|
|
then \
|
|
echo Creating ChangeLog && \
|
|
( cd "$(top_srcdir)" && \
|
|
echo '# Generated by Makefile. Do not edit.'; echo; \
|
|
$(top_srcdir)/missing --run \
|
|
git log GPARTED_0_4_4.. --date-order --date=short | \
|
|
sed -e '/^commit.*$$/d' | \
|
|
awk '/^Author/ {sub(/\\$$/,""); getline t; print $$0 t; next}; 1' | \
|
|
sed -e 's/^Author: //g' | \
|
|
sed -e 's/>Date: \([0-9]*-[0-9]*-[0-9]*\)/>\t\1/g' | \
|
|
sed -e 's/^\([^\t<]*[<][^\t>]*>\)\t\([^\t]*\)/\2 \1/g'; \
|
|
echo; \
|
|
) > ChangeLog.tmp \
|
|
&& cat $(top_srcdir)/ChangeLog >> ChangeLog.tmp \
|
|
&& mv -f ChangeLog.tmp $(top_distdir)/ChangeLog \
|
|
|| ( rm -f ChangeLog.tmp ; \
|
|
echo Failed to generate ChangeLog >&2 ); \
|
|
else \
|
|
echo A git clone is required to generate a ChangeLog >&2; \
|
|
fi
|
|
|
|
EXTRA_DIST = \
|
|
$(APPDATA_IN_FILES) \
|
|
$(APPDATA_FILES) \
|
|
$(DESKTOP_IN_IN_FILES) \
|
|
$(DESKTOP_FILES) \
|
|
intltool-extract.in \
|
|
intltool-merge.in \
|
|
intltool-update.in \
|
|
gparted.in \
|
|
gnome-doc-utils.make
|
|
|
|
DISTCLEANFILES = \
|
|
$(appdata_DATA) \
|
|
$(desktop_DATA) \
|
|
intltool-extract \
|
|
intltool-merge \
|
|
intltool-update \
|
|
gnome-doc-utils.make
|
|
|
|
DISTCHECK_CONFIGURE_FLAGS = \
|
|
--disable-scrollkeeper
|