2017-04-11 15:03:40 +00:00
|
|
|
ACLOCAL_AMFLAGS = -I m4
|
|
|
|
|
2019-03-25 20:50:54 +00:00
|
|
|
SUBDIRS = data doc include lib po src tests
|
2016-10-16 10:33:06 +00:00
|
|
|
# Only build GParted help documentation when enabled. (Can be disabled
|
|
|
|
# with './configure --disable-doc').
|
|
|
|
if BUILD_HELP_DOC
|
|
|
|
SUBDIRS += help
|
2008-09-15 17:23:11 +00:00
|
|
|
endif
|
2004-09-20 21:38:21 +00:00
|
|
|
|
|
|
|
@INTLTOOL_DESKTOP_RULE@
|
2008-04-21 15:22:00 +00:00
|
|
|
DESKTOP_IN_IN_FILES = gparted.desktop.in.in
|
2004-09-20 21:38:21 +00: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 08:09:42 +00: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 09:39:37 +00: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 06:38:56 +00:00
|
|
|
if INSTALL_POLKIT_ACTIONS
|
|
|
|
polkit_action_DATA = $(polkit_action_FILES)
|
|
|
|
endif
|
2017-06-24 09:39:37 +00:00
|
|
|
|
2017-08-05 14:43:47 +00:00
|
|
|
bin_SCRIPTS = gparted
|
2017-06-24 09:39:37 +00:00
|
|
|
CLEANFILES = $(bin_SCRIPTS) $(DESKTOP_IN_FILES) $(polkit_action_in_FILES)
|
2008-04-21 15:22:00 +00:00
|
|
|
|
2021-03-01 21:05:17 +00:00
|
|
|
do_subst = sed -e 's,[@]libexecdir[@],$(libexecdir),g' \
|
2017-08-05 14:43:47 +00:00
|
|
|
-e 's,[@]bindir[@],$(bindir),g' \
|
2017-07-17 17:31:51 +00:00
|
|
|
-e 's,[@]gksuprog[@],$(GKSUPROG),g' \
|
|
|
|
-e 's,[@]enable_xhost_root[@],$(ENABLE_XHOST_ROOT),g'
|
2008-04-21 15:22:00 +00: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 09:39:37 +00: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 21:19:15 +00: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 16:54:00 +00: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 21:19:15 +00: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 12:59:47 +00:00
|
|
|
EXTRA_DIST = \
|
2013-10-01 08:09:42 +00:00
|
|
|
$(APPDATA_IN_FILES) \
|
|
|
|
$(APPDATA_FILES) \
|
2008-04-21 15:22:00 +00:00
|
|
|
$(DESKTOP_IN_IN_FILES) \
|
2005-11-25 12:59:47 +00:00
|
|
|
$(DESKTOP_FILES) \
|
2017-06-24 09:39:37 +00:00
|
|
|
$(polkit_action_in_in_FILES) \
|
2005-11-25 12:59:47 +00:00
|
|
|
intltool-extract.in \
|
|
|
|
intltool-merge.in \
|
2008-04-21 15:22:00 +00:00
|
|
|
intltool-update.in \
|
2019-02-21 16:30:03 +00:00
|
|
|
gparted.in
|
2005-11-25 12:59:47 +00:00
|
|
|
|
|
|
|
DISTCLEANFILES = \
|
2013-10-01 08:09:42 +00:00
|
|
|
$(appdata_DATA) \
|
|
|
|
$(desktop_DATA) \
|
2017-06-24 09:39:37 +00:00
|
|
|
$(polkit_action_DATA) \
|
2005-11-25 12:59:47 +00:00
|
|
|
intltool-extract \
|
|
|
|
intltool-merge \
|
2019-02-21 16:30:03 +00:00
|
|
|
intltool-update
|