mirror of
https://gitlab.gnome.org/GNOME/gparted
synced 2024-10-30 09:08:28 +00:00
c0a7aa438a
Executables which are not intended for execution by users, but by other programs, should be installed into /usr/libexec [1][2]. gpartedbin falls into this category. Update it's installation accordingly. Standard Autotools details: gpartedbin will be installed into EPREFIX/libexec by default. To install gpartedbin into a different directory set libexecdir when configuring the build system. Like this from git: ./autogen.sh --libexecdir=DIR or like this from tar release: ./configure --libexecdir=DIR [1] Filesystem Hierarchy Standard, version 3.0, 4.7. /usr/libexec : Binaries run by other programs (optional) https://refspecs.linuxfoundation.org/FHS_3.0/fhs/ch04s07.html "/usr/libexec includes internal binaries that are not intended to be executed directly by users or shell scripts. " [2] GNU Coding Standards, June 12, 2020, 7.2.5 Variables for Installation Directories https://www.gnu.org/prep/standards/html_node/Directory-Variables.html "libexecdir The directory for installing executable programs to be run by other programs rather than by users. This directory should normally be /usr/local/libexec, but write it as $(exec_prefix)/libexec. (If you are using Autoconf, write it as '@libexecdir@'.) " Closes #85 - Please install gpartedbin under /usr/libexec instead of /usr/sbin
90 lines
2.7 KiB
Makefile
90 lines
2.7 KiB
Makefile
ACLOCAL_AMFLAGS = -I m4
|
|
|
|
SUBDIRS = data doc include lib po src tests
|
|
# Only build GParted help documentation when enabled. (Can be disabled
|
|
# with './configure --disable-doc').
|
|
if BUILD_HELP_DOC
|
|
SUBDIRS += help
|
|
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)
|
|
|
|
@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
|
|
if INSTALL_POLKIT_ACTIONS
|
|
polkit_action_DATA = $(polkit_action_FILES)
|
|
endif
|
|
|
|
bin_SCRIPTS = gparted
|
|
CLEANFILES = $(bin_SCRIPTS) $(DESKTOP_IN_FILES) $(polkit_action_in_FILES)
|
|
|
|
do_subst = sed -e 's,[@]libexecdir[@],$(libexecdir),g' \
|
|
-e 's,[@]bindir[@],$(bindir),g' \
|
|
-e 's,[@]gksuprog[@],$(GKSUPROG),g' \
|
|
-e 's,[@]enable_xhost_root[@],$(ENABLE_XHOST_ROOT),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
|
|
|
|
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
|
|
|
|
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) \
|
|
$(polkit_action_in_in_FILES) \
|
|
intltool-extract.in \
|
|
intltool-merge.in \
|
|
intltool-update.in \
|
|
gparted.in
|
|
|
|
DISTCLEANFILES = \
|
|
$(appdata_DATA) \
|
|
$(desktop_DATA) \
|
|
$(polkit_action_DATA) \
|
|
intltool-extract \
|
|
intltool-merge \
|
|
intltool-update
|