File: Makefile.am

package info (click to toggle)
qucs 0.0.15-1
  • links: PTS
  • area: main
  • in suites: squeeze
  • size: 31,208 kB
  • ctags: 25,891
  • sloc: cpp: 202,101; sh: 6,422; ansic: 5,779; xml: 4,213; perl: 3,251; yacc: 2,850; lex: 2,088; makefile: 1,416
file content (105 lines) | stat: -rw-r--r-- 3,851 bytes parent folder | download
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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
## Process this file with automake to produce Makefile.in
# 
# Makefile.am
#
# Automake input file.
#
# Copyright (C) 2004, 2005, 2006, 2008 Stefan Jahn <stefan@lkcc.org>
#
# This 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, or (at your option)
# any later version.
# 
# This software 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 package; see the file COPYING.  If not, write to
# the Free Software Foundation, Inc., 51 Franklin Street - Fifth Floor,
# Boston, MA 02110-1301, USA.  
#

SUBDIRS = qucs qucs-edit qucs-help qucs-transcalc qucs-filter qucs-lib \
	qucs-attenuator contrib $(RELEASEDIRS)

EXTRA_DIST = autogen.sh depcomp PLATFORMS RELEASE Info.plist

# MacOSX specific installation of applications
if COND_MACOSX
app_PROGS = $(top_builddir)/qucs/qucs \
  $(top_builddir)/qucs-attenuator/qucsattenuator \
  $(top_builddir)/qucs-filter/qucsfilter \
  $(top_builddir)/qucs-help/qucshelp \
  $(top_builddir)/qucs-lib/qucslib \
  $(top_builddir)/qucs-edit/qucsedit \
  $(top_builddir)/qucs-transcalc/qucstrans

install-exec-hook: mac-install-apps mac-install-framework

mac-install-apps:
	@echo "Creating MacOSX applications...";
	@list='$(app_PROGS)'; for file in $$list; do \
	app=`basename $$file` && \
	$(mkinstalldirs) $(bindir)/$$app.app/Contents && \
	$(mkinstalldirs) $(bindir)/$$app.app/Contents/Resources && \
	$(mkinstalldirs) $(bindir)/$$app.app/Contents/MacOS && \
	$(install_sh_PROGRAM) $$file $(bindir)/$$app.app/Contents/MacOS/ && \
	strip $(bindir)/$$app.app/Contents/MacOS/$$app && \
	case $$app in \
	  qucs)		  desc="Qucs";; \
	  qucsattenuator) desc="Qucs Attenuator";; \
	  qucsfilter)	  desc="Qucs Filter";; \
	  qucshelp)	  desc="Qucs Help";; \
	  qucslib)	  desc="Qucs Library";; \
	  qucsedit)	  desc="Qucs Editor";; \
	  qucstrans)	  desc="Qucs Transcalc";; \
	esac && \
	cat $(srcdir)/Info.plist | \
	  sed -e "s/@version@/$(PACKAGE_VERSION)/g" | \
	  sed -e "s/@name@/$$desc/g" | \
	  sed -e "s/@exec@/$$app/g" > \
	  $(bindir)/$$app.app/Contents/Info.plist && \
	$(install_sh_DATA) $(srcdir)/qucs/bitmaps/$$app.icns \
	  $(bindir)/$$app.app/Contents/Resources/application.icns && \
	echo "#!/bin/sh\n$(bindir)/$$app.app/Contents/MacOS/$$app \$$*\n" > \
	  $(bindir)/$$app && \
	chmod +x $(bindir)/$$app; \
	done

mac-install-framework:
	@echo "Copying and setting up MacOSX/Qt framework...";
	@if test -e "$(QTDIR)/lib/libqt.3.dylib"; then \
	  qtlib="$(QTDIR)/lib/libqt.3.dylib"; fi && \
	if test -e "$(QTDIR)/lib/libqt-mt.3.dylib"; then \
	  qtlib="$(QTDIR)/lib/libqt-mt.3.dylib"; fi && \
	if ! test -z "$$qtlib"; then \
	  $(mkinstalldirs) "$(bindir)/qucs.app/Contents/Frameworks"; \
	  cp "$$qtlib" "$(bindir)/qucs.app/Contents/Frameworks/"; \
	  qtlib=`basename $$qtlib`; \
	  install_name_tool -id "@executable_path/../Frameworks/$$qtlib" \
	    "$(bindir)/qucs.app/Contents/Frameworks/$$qtlib"; \
	  list='$(app_PROGS)'; for file in $$list; do \
	  app=`basename $$file` && \
	  install_name_tool -change $$qtlib \
	    "@executable_path/../../../qucs.app/Contents/Frameworks/$$qtlib" \
	    "$(bindir)/$$app.app/Contents/MacOS/$$app"; \
	  done; \
	fi

uninstall-hook:
	@list='$(app_PROGS)'; for file in $$list; do \
	app=`basename $$file` && \
	rm -rf $(bindir)/$$app.app; \
	done
else
install-exec-hook:
uninstall-hook:
endif

CLEANFILES = *~ *.rej *.orig
MAINTAINERCLEANFILES = aclocal.m4 config.h.in configure Makefile.in \
        stamp-h.in stamp-h[0-9].in
DISTCLEANFILES = config.cache config.log