2008-09-15 11:23:11 -06:00
|
|
|
### Do not execute make in the help subdirectory if DISABLE_DOC is set
|
|
|
|
if DISABLE_DOC
|
2008-09-22 16:41:49 -06:00
|
|
|
SUBDIRS = compose data doc include po src
|
2008-09-15 11:23:11 -06:00
|
|
|
else
|
2008-09-22 16:41:49 -06:00
|
|
|
SUBDIRS = help compose data doc include po src
|
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)
|
|
|
|
|
2008-04-21 09:22:00 -06:00
|
|
|
sbin_SCRIPTS = gparted
|
|
|
|
CLEANFILES = $(sbin_SCRIPTS) $(DESKTOP_IN_FILES)
|
|
|
|
|
2008-07-23 11:56:57 -06:00
|
|
|
do_subst = sed -e 's,[@]installdir[@],$(sbindir),g' \
|
|
|
|
-e 's,[@]gksuprog[@],$(GKSUPROG),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
|
|
|
|
|
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) \
|
|
|
|
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) \
|
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
|