xref: /netbsd-src/external/gpl2/gettext/dist/gettext-tools/projects/Makefile.am (revision 2dd295436a0082eb4f8d294f4aa73c223413d0f2)
1## Makefile for the gettext-tools/projects subdirectory of GNU gettext
2## Copyright (C) 2001-2003, 2006 Free Software Foundation, Inc.
3##
4## This program is free software; you can redistribute it and/or modify
5## it under the terms of the GNU General Public License as published by
6## the Free Software Foundation; either version 2, or (at your option)
7## any later version.
8##
9## This program is distributed in the hope that it will be useful,
10## but WITHOUT ANY WARRANTY; without even the implied warranty of
11## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12## GNU General Public License for more details.
13##
14## You should have received a copy of the GNU General Public License
15## along with this program; if not, write to the Free Software Foundation,
16## Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17
18## Process this file with automake to produce Makefile.in.
19
20AUTOMAKE_OPTIONS = 1.2 gnits
21EXTRA_DIST =
22
23RM = rm -f
24
25pkgdatadir = $(datadir)/gettext
26projectsdir = $(pkgdatadir)/projects
27
28PROJECTS = TP KDE GNOME
29SCRIPTFILES = team-address \
30	TP/trigger TP/team-address \
31	KDE/trigger KDE/team-address \
32	GNOME/trigger GNOME/team-address
33DATAFILES = index \
34	TP/teams.url TP/teams.html \
35	KDE/teams.url KDE/teams.html \
36	GNOME/teams.url GNOME/teams.html
37EXTRA_DIST += $(SCRIPTFILES) $(DATAFILES)
38
39install-data-local:
40	$(mkdir_p) $(DESTDIR)$(projectsdir)
41	@for p in $(PROJECTS); do \
42	  echo "$(mkdir_p) $(DESTDIR)$(projectsdir)/$$p"; \
43	  $(mkdir_p) $(DESTDIR)$(projectsdir)/$$p; \
44	done
45	@for f in $(SCRIPTFILES); do \
46	  echo "$(INSTALL_SCRIPT) $(srcdir)/$$f $(DESTDIR)$(projectsdir)/$$f"; \
47	  $(INSTALL_SCRIPT) $(srcdir)/$$f $(DESTDIR)$(projectsdir)/$$f; \
48	done
49	@for f in $(DATAFILES); do \
50	  echo "$(INSTALL_DATA) $(srcdir)/$$f $(DESTDIR)$(projectsdir)/$$f"; \
51	  $(INSTALL_DATA) $(srcdir)/$$f $(DESTDIR)$(projectsdir)/$$f; \
52	done
53
54installdirs-local:
55	$(mkdir_p) $(DESTDIR)$(projectsdir)
56	@for p in $(PROJECTS); do \
57	  echo "$(mkdir_p) $(DESTDIR)$(projectsdir)/$$p"; \
58	  $(mkdir_p) $(DESTDIR)$(projectsdir)/$$p; \
59	done
60
61uninstall-local:
62	@for f in $(SCRIPTFILES); do \
63	  echo "$(RM) $(DESTDIR)$(projectsdir)/$$f"; \
64	  $(RM) $(DESTDIR)$(projectsdir)/$$f; \
65	done
66	@for f in $(DATAFILES); do \
67	  echo "$(RM) $(DESTDIR)$(projectsdir)/$$f"; \
68	  $(RM) $(DESTDIR)$(projectsdir)/$$f; \
69	done
70