1
# this has all of the subdirectories that make will recurse into. if
2
# there are none, comment this out
5
# this is the program that gets installed. it's name is used for all
6
# of the other Makefile.am variables
9
# set the include path for X, qt and KDE
10
INCLUDES = $(all_includes)
12
# the library search path.
13
kid3_LDFLAGS = $(KDE_RPATH) $(all_libraries)
15
# the libraries to link against.
16
kid3_LDADD = $(LIB_KFILE)
18
# which sources should be compiled for kid3
19
kid3_SOURCES = filelist.cpp framelist.cpp genres.cpp id3form.cpp kid3.cpp main.cpp mp3file.cpp standardtags.cpp configdialog.h configdialog.cpp formatconfig.h formatconfig.cpp formatbox.h formatbox.cpp importdialog.h importdialog.cpp importselector.h importselector.cpp importparser.h importparser.cpp generalconfig.h generalconfig.cpp importconfig.h importconfig.cpp miscconfig.h miscconfig.cpp freedbdialog.h freedbdialog.cpp freedbconfig.h freedbconfig.cpp freedbclient.h freedbclient.cpp
21
# these headers are automatically built
25
# these are the headers for your project that won't be installed
26
noinst_HEADERS = configdialog.h filelist.h formatbox.h formatconfig.h framelist.h freedbclient.h freedbconfig.h freedbdialog.h generalconfig.h genres.h id3form.h importconfig.h importdialog.h importparser.h importselector.h kid3.h miscconfig.h mp3file.h standardtags.h
28
# additional files in distribution
29
EXTRA_DIST = kid3.desktop kid3ui.rc hi16-app-kid3.png hi32-app-kid3.png hi48-app-kid3.png kid3.h.both kid3.h.kde kid3.h.qtonly de_qt.po ru_qt.po kid3.dsp kid3.dsw kid3win.rc kid3.ico kid3.mak config.mk
32
$(mkinstalldirs) $(kde_datadir)/kid3/
33
$(INSTALL_DATA) $(srcdir)/kid3ui.rc $(kde_datadir)/kid3/kid3ui.rc
34
$(mkinstalldirs) $(kde_icondir)/hicolor/16x16/apps/
35
$(INSTALL_DATA) $(srcdir)/hi16-app-kid3.png $(kde_icondir)/hicolor/16x16/apps/kid3.png
36
$(mkinstalldirs) $(kde_icondir)/hicolor/32x32/apps/
37
$(INSTALL_DATA) $(srcdir)/hi32-app-kid3.png $(kde_icondir)/hicolor/32x32/apps/kid3.png
38
$(mkinstalldirs) $(kde_icondir)/hicolor/48x48/apps/
39
$(INSTALL_DATA) $(srcdir)/hi48-app-kid3.png $(kde_icondir)/hicolor/48x48/apps/kid3.png
42
-rm -f $(kde_datadir)/kid3/kid3ui.rc
43
-rm -f $(kde_icondir)/hicolor/16x16/apps/kid3.png
44
-rm -f $(kde_icondir)/hicolor/32x32/apps/kid3.png
45
-rm -f $(kde_icondir)/hicolor/48x48/apps/kid3.png
47
# create kid3.h, the original file kid3.h.both cannot be run through moc
50
(echo -e "/* Generated from kid3.h.both */\n#ifndef KID3_H\n#define KID3_H\n#include \"config.h\"\n#ifdef CONFIG_USE_KDE\n#include <kmainwindow.h>\n#else\n#include <qmainwindow.h>\n#endif\n"; \
51
$(CC) -x c++ -E -P $(DEFAULT_INCLUDES) $(INCLUDES) -DKMAINWINDOW_H -DQMAINWINDOW_H kid3.h.both; \
52
echo "#endif") >kid3.h
54
# let automoc handle all of the meta source files (moc)
58
$(XGETTEXT) *.cpp -o $(podir)/kid3.pot
60
# this is where the desktop file will go
61
desktopdir = $(kde_appsdir)/Multimedia
62
desktop_DATA = kid3.desktop