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)
|
|
|
|
|
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; \
|
|
|
|
$(top_srcdir)/missing --run git log --stat GPARTED_0_4_4.. \
|
|
|
|
) > 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 = \
|
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 = \
|
|
|
|
intltool-extract \
|
|
|
|
intltool-merge \
|
|
|
|
intltool-update \
|
2008-08-05 09:34:10 -06:00
|
|
|
$(desktop_DATA) \
|
|
|
|
gnome-doc-utils.make
|
|
|
|
|
|
|
|
DISTCHECK_CONFIGURE_FLAGS = \
|
|
|
|
--disable-scrollkeeper
|