File: Makefile.am

package info (click to toggle)
synfigstudio 0.61.08-1
  • links: PTS, VCS
  • area: main
  • in suites: lenny
  • size: 8,904 kB
  • ctags: 6,340
  • sloc: cpp: 56,669; sh: 9,787; makefile: 365; csh: 243; sed: 16
file content (113 lines) | stat: -rw-r--r-- 3,554 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
106
107
108
109
110
111
112
113
# $Id: Makefile.am 1600 2008-02-06 09:11:32Z pabs $

MAINTAINERCLEANFILES=COPYING INSTALL config/ltmain.sh doxygen.cfg config/config.guess config/config.sub config/ltmain.sh config/install-sh config/mkinstalldirs config/aclocal.m4 config/missing config/texinfo.tex config/depcomp aclocal.m4 config.h.in configure stamp-h.in Makefile.in config.log config.status .doc_stamp .DS_Store

SUBDIRS=build_tools src images po

EXTRA_DIST=COPYING TODO m4/subs.m4 doxygen.cfg.in doxygen.cfg macosxbuild.sh win32build.sh win32inst.nsi.in config/package config/depcomp m4/cxx_macros.m4 m4/ETL.m4 ChangeLog.old synfigstudio.xml.in synfigstudio-thumbnailer.schemas.in

# Desktop entry
#desktopdir              = $(datadir)/gnome/apps/Graphics
desktopdir              = $(prefix)/share/applications
desktop_DATA            = synfigstudio.desktop
#desktop_in_files        = synfigstudio.desktop.in
#desktop_DATA            = $(desktop_in_files:.desktop.in=.desktop)

# @INTLTOOL_DESKTOP_RULE@

mimedir              = $(prefix)/share/mime-info
mime_DATA            = synfigstudio.keys synfigstudio.mime

# Icon
icondir                 = $(datadir)/pixmaps
icon_DATA               = images/synfig_icon.png images/sif_icon.png

ACLOCAL_AMFLAGS=-I m4

CVS=cvs
GREP=grep
PRINTF=printf
SH=sh
DOXYGEN=doxygen
#SVN_REPOSITORY=@SVN_REPOSITORY@

SVN=svn
TAG=@PACKAGE_TARNAME@_@VERSION_MAJ@_@VERSION_MIN@_@VERSION_REV@


tagstable:
	-$(SVN) delete $(SVN_REPOSITORY)/tags/stable -m "Stable Tag: Removing old tag"
	$(SVN) copy $(top_srcdir) $(SVN_REPOSITORY)/tags/stable -m "Stable Tag: Copying everything over"

tagrelease:
	$(SVN) copy $(top_srcdir) $(SVN_REPOSITORY)/tags/$(TAG) -m "Release $(TAG)"

ChangeLog:
	-svn update
	svn2cl --include-rev || touch ChangeLog

stats:
	-@echo
	-@echo  -- Stats
	-@echo
	-@$(PRINTF) "Total lines: "
	-@wc -l $(shell find $(top_srcdir)/src -name '*.[ch]*' | $(GREP) -v libavcodec) | $(GREP) total
	-@$(PRINTF) "Total size: "
	-@du -hcs $(shell find $(top_srcdir)/src -name '*.[ch]*' | $(GREP) -v libavcodec) | $(GREP) total
	-@echo 

#tagstable:
#	$(CVS) tag -F stable

#tagrelease:
#	$(CVS) tag -F @PACKAGE_TARNAME@_@VERSION_MAJ@_@VERSION_MIN@_@VERSION_REV@

listfixmes:
	-@echo
	-@echo  -- List of pending FIXMEs
	-@echo
	-@$(GREP) FIXME -n $(shell find $(top_srcdir) -name '*.[ch]*' | grep -v svn)
	-@echo

listhacks:
	-@echo
	-@echo  -- List of pending HACKs
	-@echo
	-@$(GREP) HACK -n $(shell find $(top_srcdir) -name '*.[ch]*' | grep -v svn)
	-@echo

run: check

.doc_stamp: doxygen.cfg
	$(DOXYGEN) doxygen.cfg
	touch .doc_stamp

package-win32: all win32inst.nsi
	convert images/installer_logo.png bmp3:images/installer_logo.bmp
	make -C images sif_icon.ico synfig_icon.ico
	grep -v -e 'installer_logo' -e 'sif_icon' images/images.nsh >images/images.nsh.tmp
	grep -v -e 'installer_logo' -e 'sif_icon' images/unimages.nsh >images/unimages.nsh.tmp
	mv -f images/images.nsh.tmp images/images.nsh
	mv -f images/unimages.nsh.tmp images/unimages.nsh
	makensis win32inst.nsi

package-osx: all pkg-info/macosx/synfig-studio.info
	[ -d pkg_root ] && $(RMDIR) pkg_root || true
	convert images/installer_logo_osx.png $(srcdir)/pkg-info/macosx/studio-resources/background.tif
	make install prefix="`pwd`/pkg_root"
	$(srcdir)/config/package pkg_root pkg-info/macosx/synfig-studio.info -r $(srcdir)/pkg-info/macosx/studio-resources
if WIN32_PKG	
package: package-win32
else
if MACOSX_PKG
package: package-osx
endif
endif

html: .doc_stamp

rtf: .doc_stamp

docs: pdf html

.PHONY: stats tagstable tagrelease listfixmes listhacks check docs pdf html rtf