File: Makefile.am

package info (click to toggle)
kwave 0.7.2-5
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 9,048 kB
  • ctags: 4,906
  • sloc: cpp: 31,275; ansic: 13,111; sh: 9,511; perl: 2,724; makefile: 786; asm: 145
file content (142 lines) | stat: -rwxr-xr-x 4,990 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
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
############################################################################
#    Kwave                - Makefile.am
#			     -------------------
#    begin                : Sat Nov 11 2001
#    copyright            : (C) 2000 by Thomas Eschenbacher
#    email                : Thomas.Eschenbacher@gmx.de
############################################################################

############################################################################
#                                                                          #
#    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.                                   #
#                                                                          #
############################################################################

AUTOMAKE_OPTIONS = 1.6.1   # Require Automake 1.6.1 or better.

.PHONY: doc version-labels

srcdir  	 = $(shell pwd)

VERSION	 	 = $(shell cat ./VERSION)
ARCHIVE_DIR	 = ${srcdir}/../ARCHIVE
SRC_DIR   	 = ${srcdir}
SRC_PREFIX 	 = ${PACKAGE}
SUBDIRS  	 = @LIBAUDIOFILE_SUBDIR@ mt libgui libkwave kwave plugins po doc

CLEANFILES	 = *~ *.d *.dm *.moc *.moc.c?? *.ii \#* *.dep .depend

DISTCLEANFILES 	 = config.cache config.log config.h Makefile.in Makefile \
	`find . -type l` autom4*.cache/*

configure.in: VERSION
	$(srcdir)/bin/set_version.sh $(srcdir) \
	`cat $(srcdir)/VERSION` \
	`date --iso`

clean-generic:
	-rm -fv `find -size 0`
	-rm -fv `find . -name \*\~ -o -name \.\#\*`
	-rm -fv `find . -name \*.o`
	-rm -fv `find . -name \*.ii`
	-rm -fv `find . -name \*.lo`
	-rm -fv `find . -name \*.la`
	-rm -fv `find . -name \*.moc.c\?\?`
	-rm -fv `find . -name \*.moc`
	-rm -fv `find . -name \*.dep`
	-rm -fv `find . -name \*.d`
	-rm -fv `find . -name \*.dm`
	-rm -fv `find . -name .depend`
	-rm -fv `find . -name \*.uih.h`
	-rm -fv `find . -name \*.uic.cpp`
	-rm -fv `find . -name \.inslog\*`
	-rm -fv `find . -name \.ix\*`
	-rm -Rf doc/api

backup: ${PACKAGE}.spec
	@ cp ${PACKAGE}.spec ${PACKAGE}.spec.saved ; \
	${MAKE} distclean ; \
	mv ${PACKAGE}.spec.saved ${PACKAGE}.spec ; \
	(cd ${srcdir}/..; \
	tar -czh -f ${ARCHIVE_DIR}/${PACKAGE}-${VERSION}-backup.tgz \
	${SRC_PREFIX} ) && \
	echo source backed up to ${PACKAGE}-${VERSION}-backup.tgz

patch:	${PACKAGE}.spec
	@ cp ${PACKAGE}.spec ${PACKAGE}.spec.saved ; \
	${MAKE} distclean ; \
	mv ${PACKAGE}.spec.saved ${PACKAGE}.spec ; \
	(cd ${srcdir}/..; \
	tar -czh -f ${ARCHIVE_DIR}/${PACKAGE}-${VERSION}.tar.gz ${SRC_PREFIX} ) && \
	echo source backed up to ${PACKAGE}-${VERSION}.tar.gz
	@ $(srcdir)/bin/make_patch.sh ${PACKAGE} `cat $(srcdir)/VERSION` \
		${ARCHIVE_DIR} ${SRC_DIR} ${SRC_PREFIX}

version-labels:
	$(srcdir)/bin/set_version.sh $(srcdir) \
	`cat $(srcdir)/VERSION` \
	`date --iso`

patchlevel:
	$(srcdir)/bin/increment_patchlevel.sh ${srcdir}
	${MAKE} doc
	${MAKE} patch

release:
	@ $(srcdir)/bin/increment_release.sh ${srcdir}
	( cd doc ; ${MAKE} doc )
	${MAKE} patch

package-messages: all
	rm -f po/*.gmo
	(cd kwave ; ${MAKE} menus_config_i18n.cpp )
	@XGETTEXT@ -C -ki18n -x @KDE_POT_FILE@ \
	`find . -name \*.h -o -name \*.cpp` -o $(srcdir)/po/${PACKAGE}.pot
	(cd po ; ${MAKE} merge )

rpm_prep: doc clean distclean-generic ${PACKAGE}.spec
	rm -R -f /tmp/${PACKAGE}-@RPM_SHORT_VERSION@
	mkdir -p /tmp/${PACKAGE}-@RPM_SHORT_VERSION@
	(cd ${srcdir} ; cp -R -a ./* /tmp/${PACKAGE}-@RPM_SHORT_VERSION@ )
	(cd /tmp/ ; chmod -R a+rwX ${PACKAGE}-@RPM_SHORT_VERSION@ ; \
	touch ${PACKAGE}-@RPM_SHORT_VERSION@/doc/help_{de,fr}.docbook ; \
	find ${SRC_PREFIX}-@RPM_SHORT_VERSION@ -name CVS > \
		/tmp/${PACKAGE}-tar-excludes.lst ; \
	find ${SRC_PREFIX}-@RPM_SHORT_VERSION@ -name \.\* -type d >> \
		/tmp/${PACKAGE}-tar-excludes.lst ; \
	find ${SRC_PREFIX}-@RPM_SHORT_VERSION@ -name Makefile \
		-o -name Makefile.in -o -name aclocal.m4 \
		-o -name config.h.in -o -name config.h \
		-o -name libtool -o -name stamp-h -o -name configure \
		-o -name stamp-h1 -o -name \*.cache -o -name .depend \
		-o -name QT-KDIR -o -name KDE-VERSION \
		-o -name config.status -o -name .deps -o -name \*.log >> \
		/tmp/${PACKAGE}-tar-excludes.lst ; \
	echo "${SRC_PREFIX}-@RPM_SHORT_VERSION@/doc/api" >> \
		/tmp/${PACKAGE}-tar-excludes.lst ; \
	tar --exclude-from=/tmp/${PACKAGE}-tar-excludes.lst \
		--owner=root --group=root \
		-chzf ${PACKAGE}-@RPM_FULL_VERSION@.tar.gz \
		${SRC_PREFIX}-@RPM_SHORT_VERSION@ ; \
	 )
	- rm -f /tmp/${PACKAGE}-tar-excludes.lst
	- rm -R -f /tmp/${PACKAGE}-@RPM_SHORT_VERSION@

rpm: rpm_prep
	@RPMBUILD@ -ta /tmp/${PACKAGE}-@RPM_FULL_VERSION@.tar.gz

src.rpm: rpm_prep
	@RPMBUILD@ -ts /tmp/${PACKAGE}-@RPM_FULL_VERSION@.tar.gz

doc:
	(cd ./doc ; ${MAKE} all )

apidoc:
	-rm -Rf `find . -name \*.moc.cpp`
	doxygen doxy.cfg

#
############################################################################