2017-04-11 09:03:40 -06:00
|
|
|
ACLOCAL_AMFLAGS = -I m4
|
|
|
|
|
2017-04-30 05:34:37 -06:00
|
|
|
SUBDIRS = compose data doc include lib po src tests
|
2016-10-16 04:33:06 -06:00
|
|
|
# Only build GParted help documentation when enabled. (Can be disabled
|
|
|
|
# with './configure --disable-doc').
|
|
|
|
if BUILD_HELP_DOC
|
|
|
|
SUBDIRS += help
|
2008-09-15 11:23:11 -06:00
|
|
|
endif
|
2004-09-20 15:38:21 -06:00
|
|
|
|
|
|
|
@INTLTOOL_DESKTOP_RULE@
|
2008-04-21 09:22:00 -06:00
|
|
|
DESKTOP_IN_IN_FILES = gparted.desktop.in.in
|
2004-09-20 15:38:21 -06:00
|
|
|
DESKTOP_IN_FILES = gparted.desktop.in
|
|
|
|
DESKTOP_FILES =$(DESKTOP_IN_FILES:.desktop.in=.desktop)
|
|
|
|
desktopdir = $(datadir)/applications
|
|
|
|
desktop_DATA = $(DESKTOP_FILES)
|
|
|
|
|
2013-10-01 02:09:42 -06:00
|
|
|
@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)
|
|
|
|
|
2017-06-24 03:39:37 -06:00
|
|
|
@INTLTOOL_POLICY_RULE@
|
|
|
|
polkit_action_in_in_FILES = org.gnome.gparted.policy.in.in
|
|
|
|
polkit_action_in_FILES = org.gnome.gparted.policy.in
|
|
|
|
polkit_action_FILES = $(polkit_action_in_FILES:.policy.in=.policy)
|
|
|
|
polkit_actiondir = $(datadir)/polkit-1/actions
|
2017-08-04 00:38:56 -06:00
|
|
|
if INSTALL_POLKIT_ACTIONS
|
|
|
|
polkit_action_DATA = $(polkit_action_FILES)
|
|
|
|
endif
|
2017-06-24 03:39:37 -06:00
|
|
|
|
2017-08-05 08:43:47 -06:00
|
|
|
bin_SCRIPTS = gparted
|
2017-06-24 03:39:37 -06:00
|
|
|
CLEANFILES = $(bin_SCRIPTS) $(DESKTOP_IN_FILES) $(polkit_action_in_FILES)
|
2008-04-21 09:22:00 -06:00
|
|
|
|
2017-08-05 08:43:47 -06:00
|
|
|
do_subst = sed -e 's,[@]sbindir[@],$(sbindir),g' \
|
|
|
|
-e 's,[@]bindir[@],$(bindir),g' \
|
2017-07-17 11:31:51 -06:00
|
|
|
-e 's,[@]gksuprog[@],$(GKSUPROG),g' \
|
|
|
|
-e 's,[@]enable_xhost_root[@],$(ENABLE_XHOST_ROOT),g'
|
2008-04-21 09:22:00 -06:00
|
|
|
|
|
|
|
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
|
|
|
|
|
2017-06-24 03:39:37 -06:00
|
|
|
org.gnome.gparted.policy.in: org.gnome.gparted.policy.in.in Makefile
|
|
|
|
$(do_subst) < $(srcdir)/org.gnome.gparted.policy.in.in > org.gnome.gparted.policy.in
|
|
|
|
|
2009-04-19 15:19:15 -06:00
|
|
|
dist-hook:
|
|
|
|
@if test -d "$(srcdir)/.git"; \
|
|
|
|
then \
|
|
|
|
echo Creating ChangeLog && \
|
|
|
|
( cd "$(top_srcdir)" && \
|
|
|
|
echo '# Generated by Makefile. Do not edit.'; echo; \
|
2010-03-25 10:54:00 -06:00
|
|
|
$(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; \
|
2009-04-19 15:19:15 -06:00
|
|
|
) > 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
|
|
|
|
|
2005-11-25 05:59:47 -07:00
|
|
|
EXTRA_DIST = \
|
2013-10-01 02:09:42 -06:00
|
|
|
$(APPDATA_IN_FILES) \
|
|
|
|
$(APPDATA_FILES) \
|
2008-04-21 09:22:00 -06:00
|
|
|
$(DESKTOP_IN_IN_FILES) \
|
2005-11-25 05:59:47 -07:00
|
|
|
$(DESKTOP_FILES) \
|
2017-06-24 03:39:37 -06:00
|
|
|
$(polkit_action_in_in_FILES) \
|
2005-11-25 05:59:47 -07:00
|
|
|
intltool-extract.in \
|
|
|
|
intltool-merge.in \
|
2008-04-21 09:22:00 -06:00
|
|
|
intltool-update.in \
|
2008-08-05 09:34:10 -06:00
|
|
|
gparted.in \
|
2008-10-06 11:15:26 -06:00
|
|
|
gnome-doc-utils.make
|
2005-11-25 05:59:47 -07:00
|
|
|
|
|
|
|
DISTCLEANFILES = \
|
2013-10-01 02:09:42 -06:00
|
|
|
$(appdata_DATA) \
|
|
|
|
$(desktop_DATA) \
|
2017-06-24 03:39:37 -06:00
|
|
|
$(polkit_action_DATA) \
|
2005-11-25 05:59:47 -07:00
|
|
|
intltool-extract \
|
|
|
|
intltool-merge \
|
|
|
|
intltool-update \
|
2008-08-05 09:34:10 -06:00
|
|
|
gnome-doc-utils.make
|
|
|
|
|
|
|
|
DISTCHECK_CONFIGURE_FLAGS = \
|
|
|
|
--disable-scrollkeeper
|