Change website address to www.geda-project.org.
[geda-xgsch2pcb.git] / Makefile.am
blob29f84e9440a83dc1828b9fd6277a4dec15b92e32
1 # -*- Makefile -*-
3 # xgsch2pcb - a GUI for gsch2pcb
4 # Copyright (C) 2006 University of Cambridge
6 # This program is free software; you can redistribute it and/or modify
7 # it under the terms of the GNU General Public License as published by
8 # the Free Software Foundation; either version 2 of the License, or
9 # (at your option) any later version.
11 # This program is distributed in the hope that it will be useful,
12 # but WITHOUT ANY WARRANTY; without even the implied warranty of
13 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14 # GNU General Public License for more details.
16 # You should have received a copy of the GNU General Public License
17 # along with this program; if not, write to the Free Software
18 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
21 SUBDIRS = po data
23 bin_SCRIPTS = xgsch2pcb
25 python_PYTHON = lib/xgsch2pcb/pcbmanager.py \
26  lib/xgsch2pcb/gsch2pcbproject.py \
27  lib/xgsch2pcb/gui.py \
28  lib/xgsch2pcb/new_project_gui.py \
29  lib/xgsch2pcb/assistant.py \
30  lib/xgsch2pcb/templates.py \
31  lib/xgsch2pcb/funcs.py
33 nodist_python_PYTHON = config.py
35 INTLTOOL_FILES = intltool-extract.in \
36                  intltool-merge.in \
37                  intltool-update.in
39 EXTRA_DIST = xgsch2pcb.in lib/xgsch2pcb/config.py.in \
40              $(INTLTOOL_FILES) icon-theme-installer
41 CLEANFILES = xgsch2pcb config.py
42 DISTCLEANFILES = intltool-extract \
43                  intltool-merge \
44                  intltool-update \
45                  po/.intltool-merge-cache
46 MAINTAINERCLEANFILES = Makefile.in configure config.h.in \
47                        config.status aclocal.m4 libgeda.pc config.guess \
48                        config.sub depcomp install-sh missing mkinstalldirs \
49                        $(INTLTOOL_FILES)
51 templatesdir = @templatesdir@
52 pkglibdir = @XDGDATADIR@/xgsch2pcb
53 pythondir = $(pkglibdir)
55 do_subst = sed -e 's,[@]prefix[@],$(prefix),g' \
56                -e 's,[@]PYTHON[@],$(PYTHON),g' \
57                                        -e 's,[@]VERSION[@],$(VERSION),g' \
58                                                          -e 's,[@]pkglibdir[@],$(pkglibdir),g' \
59                                                          -e 's,[@]templatesdir[@],$(templatesdir),g' \
60                                                          -e 's,[@]PACKAGE[@],$(PACKAGE),g'
62 all: $(python_PYTHON) $(nodist_python_PYTHON)
64 config.py: lib/xgsch2pcb/config.py.in Makefile
65         $(do_subst) < $(srcdir)/lib/xgsch2pcb/config.py.in > $@
67 xgsch2pcb: xgsch2pcb.in Makefile
68         $(do_subst) < $(srcdir)/xgsch2pcb.in > $@
69         chmod +x xgsch2pcb
71 DISTCHECK_CONFIGURE_FLAGS = --disable-update-desktop-database