2008-09-15 17:23:11 +00:00
|
|
|
### Do not execute make in the help subdirectory if DISABLE_DOC is set
|
|
|
|
if DISABLE_DOC
|
2008-09-22 22:41:49 +00:00
|
|
|
SUBDIRS = compose data doc include po src
|
2008-09-15 17:23:11 +00:00
|
|
|
else
|
2008-09-22 22:41:49 +00:00
|
|
|
SUBDIRS = help compose data doc include po src
|
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)
|
|
|
|
|
2008-04-21 15:22:00 +00:00
|
|
|
sbin_SCRIPTS = gparted
|
|
|
|
CLEANFILES = $(sbin_SCRIPTS) $(DESKTOP_IN_FILES)
|
|
|
|
|
2008-07-23 17:56:57 +00:00
|
|
|
do_subst = sed -e 's,[@]installdir[@],$(sbindir),g' \
|
|
|
|
-e 's,[@]gksuprog[@],$(GKSUPROG),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
|
|
|
|
|
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 = \
|
2008-04-21 15:22:00 +00:00
|
|
|
$(DESKTOP_IN_IN_FILES) \
|
2005-11-25 12:59:47 +00:00
|
|
|
$(DESKTOP_FILES) \
|
|
|
|
intltool-extract.in \
|
|
|
|
intltool-merge.in \
|
2008-04-21 15:22:00 +00:00
|
|
|
intltool-update.in \
|
2008-08-05 15:34:10 +00:00
|
|
|
gparted.in \
|
2008-10-06 17:15:26 +00:00
|
|
|
gnome-doc-utils.make
|
2005-11-25 12:59:47 +00:00
|
|
|
|
|
|
|
DISTCLEANFILES = \
|
|
|
|
intltool-extract \
|
|
|
|
intltool-merge \
|
|
|
|
intltool-update \
|
2008-08-05 15:34:10 +00:00
|
|
|
$(desktop_DATA) \
|
|
|
|
gnome-doc-utils.make
|
|
|
|
|
|
|
|
DISTCHECK_CONFIGURE_FLAGS = \
|
|
|
|
--disable-scrollkeeper
|