File: Makefile

package info (click to toggle)
gpodder 2.20.1-1
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 5,228 kB
  • sloc: python: 16,951; makefile: 183; ansic: 140; sh: 97
file content (63 lines) | stat: -rw-r--r-- 1,820 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
#
# gPodder - A media aggregator and podcast client
# Copyright (c) 2005-2012 Thomas Perl and the gPodder Team
#
# gPodder 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 3 of the License, or
# (at your option) any later version.
#
# gPodder 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, see <http://www.gnu.org/licenses/>.
#
#
# the installed path of the gpodder script
GPODDERSCRIPT=/Users/elelay/misc/macports/svnlocal_dports/gnome/gpodder/gpodder/bin/gpodder
# the /Applications directory
APPLICATIONSDIR=/tmp/Applications
APPDIR=$(APPLICATIONSDIR)/gPodder.app
BINDIR=$(APPDIR)/Contents/MacOS
RESOURCESDIR=$(APPDIR)/Contents/Resources
# current version of gPodder
VERSION=2.3

# set OSXVERSION to darwin8 to get the Mac OS X Tiger version of the plist.
OSXVERSION=darwin8
ifeq ($(OSXVERSION),darwin8)
PLIST=Info-10.4.plist
else
PLIST=Info.plist
endif

all:$(BINDIR)/gpodder\
	$(RESOURCESDIR)/icon.icns\
	$(APPDIR)/Contents/PkgInfo\
	$(APPDIR)/Contents/Info.plist

$(BINDIR):
	mkdir -p $(BINDIR)

$(RESOURCESDIR):
	mkdir -p $(RESOURCESDIR)

$(BINDIR)/gpodder: ../../bin/gpodder $(BINDIR)
	ln -s $(GPODDERSCRIPT) $@

$(RESOURCESDIR)/icon.icns: icon.icns $(RESOURCESDIR)
	install $< $@

$(APPDIR)/Contents/PkgInfo: PkgInfo $(RESOURCESDIR)
	install $< $@

$(APPDIR)/Contents/Info.plist: $(PLIST) $(APPDIR)/Contents
	sed "s|__VERSION__|$(VERSION)|g" $< > $@

clean:
	rm -rf $(APPDIR)

.PHONY: all clean dirs