[c08533]: kwave / Makefile.am Maximize Restore History

Download this file

Makefile.am    196 lines (168 with data), 5.8 kB

  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
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
# this 10 paths are KDE specific. Use them:
# kde_htmldir Where your docs should go to. (contains lang subdirs)
# kde_appsdir Where your application file (.kdelnk) should go to.
# kde_icondir Where your icon should go to.
# kde_minidir Where your mini icon should go to.
# kde_datadir Where you install application data. (Use a subdir)
# kde_locale Where translation files should go to.(contains lang subdirs)
# kde_cgidir Where cgi-bin executables should go to.
# kde_confdir Where config files should go to.
# kde_mimedir Where mimetypes should go to.
APPSDIR= $(DESTDIR)$(kde_appsdir)/Multimedia
CONFDIR= $(DESTDIR)$(kde_datadir)/$(PACKAGE)
PIXDIR = $(DESTDIR)$(kde_datadir)/$(PACKAGE)/pics
# set the include path for X, qt and KDE
INCLUDES= -I${topdir} @all_includes@
ICONDIR = $(DESTDIR)$(kde_icondir)
mimedir = $(kde_mimedir)/audio
mime_DATA = x-aifc.desktop x-ircam.desktop
EXTRA_DIST = $(mime_DATA)
bin_PROGRAMS = kwave
# specifying the bindir is necessary in order to let make install
# use the correct directory when building a binary rpm package
bindir=$(prefix)/bin
# conversion to modules to do for the following files:
# mdialog_sweep.cpp mdialog_frequency.cpp mdialog_fixedfreq.cpp addsynth.h
# Which sources should be compiled for kwave.
BUILTSOURCES=\
CodecManager.moc.cpp\
FFTContainer.moc.cpp\
FFTWindow.moc.cpp\
ImageView.moc.cpp\
LabelManager.moc.cpp\
KwaveApp.moc.cpp\
MainWidget.moc.cpp\
PitchContainer.moc.cpp\
PitchWidget.moc.cpp\
PitchWindow.moc.cpp\
PlaybackController.moc.cpp \
PluginManager.moc.cpp\
SignalManager.moc.cpp\
SignalWidget.moc.cpp\
TopWidget.moc.cpp\
UndoInsertAction.moc.cpp
kwave_SOURCES =\
main.cpp\
ClipBoard.cpp\
CodecManager.cpp\
FFTContainer.cpp\
FFTWindow.cpp\
ImageView.cpp\
KwaveApp.cpp\
LabelManager.cpp\
MainWidget.cpp\
MemoryManager.cpp\
MouseMark.cpp\
PitchContainer.cpp\
PitchWidget.cpp\
PitchWindow.cpp\
PlaybackController.cpp\
PluginManager.cpp\
SignalManager.cpp\
SignalWidget.cpp\
SwapFile.cpp\
TopWidget.cpp\
UndoDeleteAction.cpp\
UndoDeleteTrack.cpp\
UndoInsertAction.cpp\
UndoInsertTrack.cpp\
UndoModifyAction.cpp\
UndoSelection.cpp\
UndoTransaction.cpp\
UndoTransactionGuard.cpp\
$(BUILTSOURCES)
# extra data, icons etc
ICONS = \
pics/$(PACKAGE)-16x16.png \
pics/$(PACKAGE)-22x22.png \
pics/$(PACKAGE)-32x32.png \
pics/$(PACKAGE)-48x48.png
# some pixmaps to be installed in the data dir
PIXMAPS=\
amplify_free.png\
delete.xpm\
exit.xpm\
fade_in.png\
fade_out.png\
filesave.xpm\
font.xpm\
knife.xpm\
knob.xpm\
light_off.xpm\
light_on.xpm\
logo.xpm\
lspeaker.xpm\
noise.png\
playback_loop.xpm\
playback_start.xpm\
playback_stop.xpm\
playback_pause.xpm\
playback_pause2.xpm\
rspeaker.xpm\
selectedknob.xpm\
xspeaker.xpm
# the library search path
kwave_LDFLAGS = -L../mt -L../libkwave -L../libgui \
`$(ARTSCCONFIG) --libs` @all_libraries@ -export-dynamic -dy
# the libraries to link against. Be aware of the order. First the libraries,
# that depend on the following ones.
kwave_LDADD = -lkwavegui -lkwave -lkwavemt \
@KDE_VERSION_SPECIFIC_LIBS@ \
-lX11 -lXext -lpthread -ldl -lm
# -L../check -lmem -lbfd -liberty
# if you "make distclean", this files get removed. If you want to remove
# them while "make clean", use CLEANFILES
DISTCLEANFILES = $(BUILTSOURCES) core *~ .deps/* doc/*~ Makefile.in Makefile
$(APPSDIR)/kwave.desktop:
# holds the content of menus.config for internationalization
menus_config_i18n.cpp: menus.config
${topdir}/bin/menusconfig2cpp.sh menus.config menus_config_i18n.cpp
# make messages.po. Move this one to ../po/ and "make merge" in po
messages:
$(XGETTEXT) -C -ktranslate $(kwave_SOURCES)
#
# Rules for re-creating all icons in their various sizes
pics/$(PACKAGE)-16x16.png: pics/$(PACKAGE).xpm
$(CONVERT) -geometry 16x16 $< $@
pics/$(PACKAGE)-22x22.png: pics/$(PACKAGE).xpm
$(CONVERT) -geometry 22x22 $< $@
pics/$(PACKAGE)-32x32.png: pics/$(PACKAGE).xpm
$(CONVERT) -geometry 32x32 $< $@
pics/$(PACKAGE)-48x48.png: pics/$(PACKAGE).xpm
$(CONVERT) -geometry 48x48 $< $@
# just install datas here. Use install-exec-data for scripts and etc.
# the binary itself is already installed from automake
# use mkinstalldirs, not "install -d"
# don't install a list of file. Just one file per install.
# if you have more of them, create a subdirectory with an extra Makefile
install-data-local: $(ICONS)
$(mkinstalldirs) $(APPSDIR)
$(INSTALL_DATA) kwave.desktop $(APPSDIR)/kwave.desktop
$(mkinstalldirs) $(PIXDIR)
for pix in $(PIXMAPS); do { $(INSTALL_DATA) pics/$$pix $(PIXDIR) ; }; done;
$(mkinstalldirs) $(CONFDIR)
$(INSTALL_DATA) menus.config $(CONFDIR)/menus.config
for col in locolor hicolor; do { \
for dim in 16x16 22x22 32x32 48x48; do { \
$(mkinstalldirs) $(ICONDIR)/$$col/$$dim/apps/; \
$(INSTALL_DATA) pics/${PACKAGE}-$$dim.png $(ICONDIR)/$$col/$$dim/apps/$(PACKAGE).png; \
}; done; \
}; done;
# remove ALL you have installed in install-data-local or install-exec-local
uninstall-local:
for col in locolor hicolor; do { \
for dim in 16x16 22x22 32x32 48x48; do { \
rm -f $(ICONDIR)/$$col/$$dim/apps/$(PACKAGE).png || true; \
(rmdir -p --ignore-fail-on-non-empty $(ICONDIR)/$$col/$$dim/apps/ >/dev/null 2>&1); \
}; done; \
}; done;
for pix in $(PIXMAPS); do { rm -fv $(PIXDIR)/$$pix ; }; done;
-rm -f $(APPSDIR)/kwave.desktop
-rm -f $(CONFDIR)/menus.config
-rmdir -p --ignore-fail-on-non-empty $(APPSDIR) >/dev/null 2>&1
-rmdir -p --ignore-fail-on-non-empty $(CONFDIR) >/dev/null 2>&1
-rmdir -p --ignore-fail-on-non-empty $(PIXDIR) >/dev/null 2>&1
-rmdir -p --ignore-fail-on-non-empty $(DESTDIR)$(bindir) >/dev/null 2>&1
# dependencies for moc files
%moc.cpp: %h
${MOC} -o $@ $<