File: Makefile.am

package info (click to toggle)
geda-xgsch2pcb 0.1.3-2
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd, wheezy
  • size: 760 kB
  • ctags: 143
  • sloc: python: 1,408; sh: 796; makefile: 86
file content (69 lines) | stat: -rw-r--r-- 2,393 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
# -*- Makefile -*-
#
# xgsch2pcb - a GUI for gsch2pcb
# Copyright (C) 2006 University of Cambridge
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
#

SUBDIRS = po data

bin_SCRIPTS = xgsch2pcb

pkglib_PYTHON = lib/xgsch2pcb/pcbmanager.py \
 lib/xgsch2pcb/gsch2pcbproject.py \
 lib/xgsch2pcb/gui.py \
 lib/xgsch2pcb/new_project_gui.py \
 lib/xgsch2pcb/assistant.py \
 lib/xgsch2pcb/templates.py \
 lib/xgsch2pcb/funcs.py

nodist_pkglib_PYTHON = config.py

INTLTOOL_FILES = intltool-extract.in \
                 intltool-merge.in \
                 intltool-update.in

EXTRA_DIST = xgsch2pcb.in lib/xgsch2pcb/config.py.in \
             $(INTLTOOL_FILES) icon-theme-installer
CLEANFILES = xgsch2pcb config.py
DISTCLEANFILES = intltool-extract \
                 intltool-merge \
                 intltool-update \
                 po/.intltool-merge-cache
MAINTAINERCLEANFILES = Makefile.in configure config.h.in \
                       config.status aclocal.m4 libgeda.pc config.guess \
                       config.sub depcomp install-sh missing mkinstalldirs \
                       $(INTLTOOL_FILES)

templatesdir = @templatesdir@

do_subst = sed -e 's,[@]prefix[@],$(prefix),g' \
               -e 's,[@]PYTHON[@],$(PYTHON),g' \
				       -e 's,[@]VERSION[@],$(VERSION),g' \
							 -e 's,[@]pkglibdir[@],$(pkglibdir),g' \
							 -e 's,[@]templatesdir[@],$(templatesdir),g' \
							 -e 's,[@]PACKAGE[@],$(PACKAGE),g'

all: $(pkglib_PYTHON) $(nodist_pkglib_PYTHON)

config.py: lib/xgsch2pcb/config.py.in Makefile
	$(do_subst) < $(srcdir)/lib/xgsch2pcb/config.py.in > $@

xgsch2pcb: xgsch2pcb.in Makefile
	$(do_subst) < $(srcdir)/xgsch2pcb.in > $@
	chmod +x xgsch2pcb

DISTCHECK_CONFIGURE_FLAGS = --disable-update-desktop-database