Blame Makefile.am

Packit 9c2278
DISTCHECK_CONFIGURE_FLAGS = --disable-icon-mapping
Packit 9c2278
Packit 9c2278
SUBDIRS = src win32
Packit 9c2278
Packit 9c2278
ACLOCAL_AMFLAGS = -I m4 ${ACLOCAL_FLAGS}
Packit 9c2278
Packit 9c2278
cursordir = $(datadir)/icons/Adwaita/cursors
Packit 9c2278
Packit 9c2278
# Install .cur/.ani on Windows and X cursors everywhere else
Packit 9c2278
win_cursors = $(wildcard $(srcdir)/Adwaita/cursors/*.cur) $(wildcard $(srcdir)/Adwaita/cursors/*.ani)
Packit 9c2278
if PLATFORM_WIN32
Packit 9c2278
cursor_DATA = $(win_cursors)
Packit 9c2278
else
Packit 9c2278
cursor_DATA = $(filter-out $(win_cursors), $(wildcard $(srcdir)/Adwaita/cursors/*))
Packit 9c2278
endif
Packit 9c2278
Packit 9c2278
if ENABLE_L_XL_VARIANTS
Packit 9c2278
cursorldir = $(datadir)/icons/Adwaita-Large/cursors
Packit 9c2278
cursorl_DATA = $(wildcard $(srcdir)/Adwaita-Large/cursors/*)
Packit 9c2278
cursorxldir = $(datadir)/icons/Adwaita-ExtraLarge/cursors
Packit 9c2278
cursorxl_DATA = $(wildcard $(srcdir)/Adwaita-ExtraLarge/cursors/*)
Packit 9c2278
else
Packit 9c2278
cursorldir =
Packit 9c2278
cursorl_DATA =
Packit 9c2278
cursorxldir =
Packit 9c2278
cursorxl_DATA =
Packit 9c2278
endif
Packit 9c2278
Packit 9c2278
theme_in_files = index.theme.in
Packit 9c2278
theme_DATA = $(theme_in_files:.theme.in=.theme)
Packit 9c2278
Packit 9c2278
THEME_DIRS=$(shell SIZES="$(install_sizes)"; for size in $$SIZES; do for dir in `find $(srcdir)/$(SVGOUTDIR)/$$size/* -type d`; do printf "$$dir,"; done; done; echo "scalable/actions,scalable/apps,scalable/categories,scalable/devices,scalable/emblems,scalable/emotes,scalable/mimetypes,scalable/places,scalable/status,scalable-up-to-32/status,")
Packit 9c2278
Packit 9c2278
%.theme: %.theme.in $(SVGOUTDIR) Makefile
Packit 9c2278
	dirs="`echo $(THEME_DIRS) | sed -e 's#$(srcdir)/Adwaita/##g'`"; \
Packit 9c2278
	sed -e "s|\@THEME_DIRS\@|$$dirs|g" < $< > $@; \
Packit 9c2278
	for dir in `echo $$dirs | sed -e "s/,/ /g"`; do \
Packit 9c2278
		sizefull="`dirname $$dir`"; \
Packit 9c2278
		if test "$$sizefull" = "scalable"; then \
Packit 9c2278
			size="16"; \
Packit 9c2278
		elif test "$$sizefull" = "scalable-up-to-32"; then \
Packit 9c2278
			size="16"; \
Packit 9c2278
		else \
Packit 9c2278
			size="`echo $$sizefull | sed -e 's/x.*$$//g'`"; \
Packit 9c2278
		fi; \
Packit 9c2278
		context="`basename $$dir`"; \
Packit 9c2278
		echo "[$$dir]" >> $@; \
Packit 9c2278
		if test "$$context" = "actions"; then \
Packit 9c2278
			echo "Context=Actions" >> $@; \
Packit 9c2278
		fi; \
Packit 9c2278
		if test "$$context" = "animations"; then \
Packit 9c2278
			echo "Context=Animations" >> $@; \
Packit 9c2278
		fi; \
Packit 9c2278
		if test "$$context" = "apps"; then \
Packit 9c2278
			echo "Context=Applications" >> $@; \
Packit 9c2278
		fi; \
Packit 9c2278
		if test "$$context" = "categories"; then \
Packit 9c2278
			echo "Context=Categories" >> $@; \
Packit 9c2278
		fi; \
Packit 9c2278
		if test "$$context" = "devices"; then \
Packit 9c2278
			echo "Context=Devices" >> $@; \
Packit 9c2278
		fi; \
Packit 9c2278
		if test "$$context" = "emblems"; then \
Packit 9c2278
			echo "Context=Emblems" >> $@; \
Packit 9c2278
		fi; \
Packit 9c2278
		if test "$$context" = "emotes"; then \
Packit 9c2278
			echo "Context=Emotes" >> $@; \
Packit 9c2278
		fi; \
Packit 9c2278
		if test "$$context" = "intl"; then \
Packit 9c2278
			echo "Context=International" >> $@; \
Packit 9c2278
		fi; \
Packit 9c2278
		if test "$$context" = "mimetypes"; then \
Packit 9c2278
			echo "Context=MimeTypes" >> $@; \
Packit 9c2278
		fi; \
Packit 9c2278
		if test "$$context" = "places"; then \
Packit 9c2278
			echo "Context=Places" >> $@; \
Packit 9c2278
		fi; \
Packit 9c2278
		if test "$$context" = "status"; then \
Packit 9c2278
			echo "Context=Status" >> $@; \
Packit 9c2278
		fi; \
Packit 9c2278
		echo "Size=$$size" >> $@; \
Packit 9c2278
		if test "$$sizefull" = "scalable"; then \
Packit 9c2278
			echo "MinSize=8" >> $@; \
Packit 9c2278
			echo "MaxSize=512" >> $@; \
Packit 9c2278
			echo "Type=Scalable" >> $@; \
Packit 9c2278
		elif test "$$sizefull" = "scalable-up-to-32"; then \
Packit 9c2278
			echo "MinSize=16" >> $@; \
Packit 9c2278
			echo "MaxSize=32" >> $@; \
Packit 9c2278
			echo "Type=Scalable" >> $@; \
Packit 9c2278
		elif test "$$size" = "256"; then \
Packit 9c2278
			echo "MinSize=56" >> $@; \
Packit 9c2278
			echo "MaxSize=256" >> $@; \
Packit 9c2278
			echo "Type=Scalable" >> $@; \
Packit 9c2278
		elif test "$$size" = "512"; then \
Packit 9c2278
			echo "MinSize=56" >> $@; \
Packit 9c2278
			echo "MaxSize=512" >> $@; \
Packit 9c2278
			echo "Type=Scalable" >> $@; \
Packit 9c2278
		else \
Packit 9c2278
			echo "Type=Fixed" >> $@; \
Packit 9c2278
		fi; \
Packit 9c2278
		echo "" >> $@; \
Packit 9c2278
	done
Packit 9c2278
Packit 9c2278
# Symbolic?
Packit 9c2278
#THEME_DIRS=$(shell SIZES="$(render_sizes)"; for size in $$SIZES; do for dir in `find $(srcdir)/$(SVGOUTDIR)/$$size/* -type d`; do printf "$$dir,"; done; done | sed -e "s/,$$//g")
Packit 9c2278
Packit 9c2278
render: Makefile
Packit 9c2278
	($(am__cd) $(SVGSRCDIR) && $(MAKE) $(AM_MAKEFLAGS) render) \
Packit 9c2278
	|| eval `exit 1`
Packit 9c2278
Packit 9c2278
# we don't want to install mo files, all translations are already stored
Packit 9c2278
# in theme files
Packit 9c2278
install-data-local:
Packit 9c2278
	if [ -h $(DESTDIR)$(themedir) ]; then \
Packit 9c2278
		rm -f $(DESTDIR)$(themedir); \
Packit 9c2278
	fi
Packit 9c2278
	if [ -d $(DESTDIR)$(themedir) ]; then \
Packit 9c2278
		touch $(DESTDIR)$(themedir); \
Packit 9c2278
	fi
Packit 9c2278
Packit 9c2278
install-data-hook:
Packit 9c2278
	cd $(DESTDIR)$(cursordir) && \
Packit 9c2278
	if test "x$(platform_win32)" = "xyes"; \
Packit 9c2278
	then \
Packit 9c2278
		cur=.cur && \
Packit 9c2278
		ani=.ani; \
Packit 9c2278
	else \
Packit 9c2278
		cur= && \
Packit 9c2278
		ani= ; \
Packit 9c2278
	fi; \
Packit 9c2278
	if test "x$(enable_l_xl_variants)" = "xyes"; \
Packit 9c2278
	then \
Packit 9c2278
		themedirs="$(cursordir) $(cursorldir) $(cursorxldir)"; \
Packit 9c2278
	else \
Packit 9c2278
		themedirs="$(cursordir)"; \
Packit 9c2278
	fi; \
Packit 9c2278
	for d in $$themedirs; \
Packit 9c2278
	do \
Packit 9c2278
		cd $(DESTDIR)$$d && \
Packit 9c2278
		echo Creating symlinks in $(DESTDIR)$$d && \
Packit 9c2278
		$(LN_S) -f  dotbox$$cur			draped_box$$cur && \
Packit 9c2278
		$(LN_S) -f  dotbox$$cur			icon$$cur && \
Packit 9c2278
		$(LN_S) -f  dotbox$$cur			target$$cur && \
Packit 9c2278
		$(LN_S) -f  dotbox$$cur			dot_box_mask$$cur && \
Packit 9c2278
		$(LN_S) -f  X_cursor$$cur		pirate$$cur && \
Packit 9c2278
		$(LN_S) -f  left_ptr_watch$$ani		08e8e1c95fe2fc01f976f1e063a24ccd$$ani && \
Packit 9c2278
		$(LN_S) -f  left_ptr_watch$$ani		3ecb610c1bf2410f44200f48c40d3599$$ani && \
Packit 9c2278
		$(LN_S) -f  left_ptr$$cur		arrow$$cur && \
Packit 9c2278
		$(LN_S) -f  left_ptr$$cur		top_left_arrow$$cur && \
Packit 9c2278
		$(LN_S) -f  right_ptr$$cur		draft_large$$cur && \
Packit 9c2278
		$(LN_S) -f  right_ptr$$cur		draft_small$$cur && \
Packit 9c2278
		$(LN_S) -f  move$$cur			4498f0e0c1937ffe01fd06f973665830$$cur && \
Packit 9c2278
		$(LN_S) -f  move$$cur			9081237383d90e509aa00f00170e968f$$cur && \
Packit 9c2278
		$(LN_S) -f  copy$$cur			1081e37283d90000800003c07f3ef6bf$$cur && \
Packit 9c2278
		$(LN_S) -f  copy$$cur			6407b0e94181790501fd1e167b474872$$cur && \
Packit 9c2278
		$(LN_S) -f  cross$$cur			cross_reverse$$cur && \
Packit 9c2278
		$(LN_S) -f  cross$$cur			diamond_cross$$cur && \
Packit 9c2278
		$(LN_S) -f  hand1$$cur			grab$$cur && \
Packit 9c2278
		$(LN_S) -f  hand2$$cur			9d800788f1b08800ae810202380a0822$$cur && \
Packit 9c2278
		$(LN_S) -f  hand2$$cur			e29285e634086352946a0e7090d73106$$cur && \
Packit 9c2278
		$(LN_S) -f  hand2$$cur			hand$$cur && \
Packit 9c2278
		$(LN_S) -f  grabbing$$cur		fleur$$cur && \
Packit 9c2278
		$(LN_S) -f  question_arrow$$cur		d9ce0ab605698f320427677b458ad60b$$cur && \
Packit 9c2278
		$(LN_S) -f  question_arrow$$cur		5c6cd98b3f3ebcb1f9c7f1c204630408$$cur && \
Packit 9c2278
		$(LN_S) -f  question_arrow$$cur		help$$cur && \
Packit 9c2278
		$(LN_S) -f  question_arrow$$cur		left_ptr_help$$cur && \
Packit 9c2278
		$(LN_S) -f  link$$cur			3085a0e285430894940527032f8b26df$$cur && \
Packit 9c2278
		$(LN_S) -f  link$$cur			640fb0e74195791501fd1ed57b41487f$$cur && \
Packit 9c2278
		$(LN_S) -f  crossed_circle$$cur		03b6e0fcb3499374a867c041f52298f0$$cur && \
Packit 9c2278
		$(LN_S) -f  fd_double_arrow$$cur	fcf1c3c7cd4491d801f1e1c78f100000$$cur && \
Packit 9c2278
		$(LN_S) -f  bd_double_arrow$$cur	c7088f0f3e6c8088236ef8e1e3e70000$$cur && \
Packit 9c2278
		$(LN_S) -f  sb_h_double_arrow$$cur 	h_double_arrow$$cur && \
Packit 9c2278
		$(LN_S) -f  sb_h_double_arrow$$cur	14fef782d02440884392942c11205230$$cur && \
Packit 9c2278
		$(LN_S) -f  h_double_arrow$$cur		028006030e0e7ebffc7f7070c0600140$$cur && \
Packit 9c2278
		$(LN_S) -f  sb_v_double_arrow$$cur 	double_arrow$$cur && \
Packit 9c2278
		$(LN_S) -f  sb_v_double_arrow$$cur 	v_double_arrow$$cur && \
Packit 9c2278
		$(LN_S) -f  sb_v_double_arrow$$cur	2870a09082c103050810ffdffffe0204$$cur && \
Packit 9c2278
		$(LN_S) -f  v_double_arrow$$cur		00008160000006810000408080010102$$cur && \
Packit 9c2278
		$(LN_S) -f  fleur$$cur			size_all$$cur && \
Packit 9c2278
		$(LN_S) -f  fd_double_arrow$$cur	size_bdiag$$cur && \
Packit 9c2278
		$(LN_S) -f  bd_double_arrow$$cur	size_fdiag$$cur && \
Packit 9c2278
		$(LN_S) -f  h_double_arrow$$cur		size_hor$$cur && \
Packit 9c2278
		$(LN_S) -f  v_double_arrow$$cur		size_ver$$cur && \
Packit 9c2278
		$(LN_S) -f  left_ptr$$cur		default$$cur && \
Packit 9c2278
		$(LN_S) -f  hand$$cur			pointer$$cur && \
Packit 9c2278
		$(LN_S) -f  left_ptr_watch$$ani		progress$$ani && \
Packit 9c2278
		$(LN_S) -f  watch$$ani			wait$$ani && \
Packit 9c2278
		$(LN_S) -f  cross$$cur			crosshair$$cur && \
Packit 9c2278
		$(LN_S) -f  xterm$$cur			text$$cur && \
Packit 9c2278
		$(LN_S) -f  dnd-link$$cur		alias$$cur && \
Packit 9c2278
		$(LN_S) -f  dnd-copy$$cur		copy$$cur && \
Packit 9c2278
		$(LN_S) -f  dnd-no-drop$$cur		no-drop$$cur && \
Packit 9c2278
		$(LN_S) -f  crossed_circle$$cur		not-allowed$$cur && \
Packit 9c2278
		$(LN_S) -f  sb_h_double_arrow$$cur	col-resize$$cur && \
Packit 9c2278
		$(LN_S) -f  sb_v_double_arrow$$cur	row-resize$$cur && \
Packit 9c2278
		$(LN_S) -f  top_side$$cur		n-resize$$cur && \
Packit 9c2278
		$(LN_S) -f  right_side$$cur		e-resize$$cur && \
Packit 9c2278
		$(LN_S) -f  bottom_side$$cur		s-resize$$cur && \
Packit 9c2278
		$(LN_S) -f  left_side$$cur		w-resize$$cur && \
Packit 9c2278
		$(LN_S) -f  top_right_corner$$cur	ne-resize$$cur && \
Packit 9c2278
		$(LN_S) -f  top_left_corner$$cur	nw-resize$$cur && \
Packit 9c2278
		$(LN_S) -f  bottom_right_corner$$cur	se-resize$$cur && \
Packit 9c2278
		$(LN_S) -f  bottom_left_corner$$cur	sw-resize$$cur && \
Packit 9c2278
		$(LN_S) -f  sb_h_double_arrow$$cur	ew-resize$$cur && \
Packit 9c2278
		$(LN_S) -f  sb_v_double_arrow$$cur	ns-resize$$cur && \
Packit 9c2278
		$(LN_S) -f  fd_double_arrow$$cur	nesw-resize$$cur && \
Packit 9c2278
		$(LN_S) -f  bd_double_arrow$$cur	nwse-resize$$cur; \
Packit 9c2278
	done
Packit 9c2278
	if test -z "$(DESTDIR)" && test -n "$(GTK_UPDATE_ICON_CACHE)" ; then \
Packit 9c2278
		$(GTK_UPDATE_ICON_CACHE) -q $(DESTDIR)$(themedir); \
Packit 9c2278
	fi
Packit 9c2278
Packit 9c2278
uninstall-hook:
Packit 9c2278
	@rm -f  $(DESTDIR)$(themedir)/icon-theme.cache
Packit 9c2278
Packit 9c2278
pkgconfigdir = $(datadir)/pkgconfig
Packit 9c2278
pkgconfig_DATA = adwaita-icon-theme.pc
Packit 9c2278
Packit 9c2278
EXTRA_DIST =			\
Packit 9c2278
	adwaita-icon-theme.pc.in  \
Packit 9c2278
	Adwaita			\
Packit 9c2278
	COPYING_CCBYSA3		\
Packit 9c2278
	COPYING_LGPL		\
Packit 9c2278
	$(theme_in_files)
Packit 9c2278
Packit 9c2278
CLEANFILES = 			\
Packit 9c2278
	$(theme_DATA)
Packit 9c2278
Packit 9c2278
MAINTAINERCLEANFILES =			\
Packit 9c2278
	Makefile.in			\
Packit 9c2278
	aclocal.m4			\
Packit 9c2278
	config.guess			\
Packit 9c2278
	config.h.in			\
Packit 9c2278
	config.sub			\
Packit 9c2278
	configure			\
Packit 9c2278
	depcomp				\
Packit 9c2278
	install-sh			\
Packit 9c2278
	intltool-*.in			\
Packit 9c2278
	libtool				\
Packit 9c2278
	ltmain.sh			\
Packit 9c2278
	missing				\
Packit 9c2278
	mkinstalldirs
Packit 9c2278
Packit 9c2278
-include $(top_srcdir)/git.mk
Packit 9c2278