Makefile.am 1.33 KB
Newer Older
1 2
## Process this file with automake to produce Makefile.in

3 4 5 6 7
EXTRA_DIST = \
	Wilber.xcf.gz			\
	Wilber.xcf.gz.README		\
	Wilber_Construction_Kit.xcf.gz

8
mans = \
9
	gimp-$(GIMP_APP_VERSION).1	\
10
	gimprc-$(GIMP_APP_VERSION).5
11

12
man_MANS = \
13
	$(mans)				\
14 15
	gimptool-$(GIMP_TOOL_VERSION).1

16 17 18 19 20
default_binary_mans = $(mans)
if ENABLE_GIMP_CONSOLE
default_binary_mans += gimp-console-$(GIMP_APP_VERSION).1
endif

21
install-data-hook:
22 23 24 25 26
if ENABLE_GIMP_CONSOLE
	cd $(DESTDIR)$(mandir)/man1; \
	rm -f gimp-console-$(GIMP_APP_VERSION).1; \
	ln -s gimp-$(GIMP_APP_VERSION).1 gimp-console-$(GIMP_APP_VERSION).1
endif
27
if DEFAULT_BINARY
28
	@list='$(default_binary_mans)'; \
29 30 31 32 33 34 35 36 37 38 39 40 41 42
	for i in $$list; do \
	  s=`echo $$i | sed -e 's/.*\\(.\\)$$/\1/'`; \
	  n=`echo $$i | sed -e 's/-[^-]*$$//'`; \
	  f="$$n.$$s"; \
	  echo "cd $(DESTDIR)$(mandir)/man$$s"; \
	  cd $(DESTDIR)$(mandir)/man$$s; \
	  echo "rm -f $$f"; \
	  rm -f $$f; \
	  echo "ln -s $$i $$f"; \
	  ln -s $$i $$f; \
	done
endif

uninstall-local:
43
if ENABLE_GIMP_CONSOLE
44
	rm -f $(DESTDIR)$(mandir)/man1/gimp-console-$(GIMP_APP_VERSION).1
45
endif
46
if DEFAULT_BINARY
47
	@list='$(default_binary_mans)'; \
48 49 50 51 52 53 54 55
	for i in $$list; do \
	  s=`echo $$i | sed -e 's/.*\\(.\\)$$/\1/'`; \
	  n=`echo $$i | sed -e 's/-[^-]*$$//'`; \
	  f="$$n.$$s"; \
	  echo " rm -f $(DESTDIR)$(mandir)/man$$s/$$f"; \
	  rm -f $(DESTDIR)$(mandir)/man$$s/$$f; \
	done
endif