~ubuntu-branches/ubuntu/feisty/kid3/feisty

« back to all changes in this revision

Viewing changes to kid3/Makefile.am

  • Committer: Bazaar Package Importer
  • Author(s): Aurelien Jarno
  • Date: 2004-04-29 02:11:57 UTC
  • Revision ID: james.westby@ubuntu.com-20040429021157-omrdcw8270prqiun
Tags: upstream-0.4
ImportĀ upstreamĀ versionĀ 0.4

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# this has all of the subdirectories that make will recurse into.  if
 
2
# there are none, comment this out
 
3
#SUBDIRS =
 
4
 
 
5
# this is the program that gets installed.  it's name is used for all
 
6
# of the other Makefile.am variables
 
7
bin_PROGRAMS = kid3
 
8
 
 
9
# set the include path for X, qt and KDE
 
10
INCLUDES = $(all_includes)
 
11
 
 
12
# the library search path. 
 
13
kid3_LDFLAGS = $(KDE_RPATH) $(all_libraries)
 
14
 
 
15
# the libraries to link against.
 
16
kid3_LDADD   = $(LIB_KFILE)
 
17
 
 
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
 
20
 
 
21
# these headers are automatically built
 
22
BUILT_SOURCES =
 
23
CLEANFILES =
 
24
 
 
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
 
27
 
 
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
 
30
 
 
31
install-data-local:
 
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
 
40
 
 
41
uninstall-local:
 
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
 
46
 
 
47
# create kid3.h, the original file kid3.h.both cannot be run through moc
 
48
# because of ifdefs.
 
49
kid3.h: kid3.h.both
 
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
 
53
 
 
54
# let automoc handle all of the meta source files (moc)
 
55
METASOURCES = AUTO
 
56
 
 
57
messages: rc.cpp
 
58
        $(XGETTEXT) *.cpp -o $(podir)/kid3.pot
 
59
 
 
60
# this is where the desktop file will go 
 
61
desktopdir   = $(kde_appsdir)/Multimedia
 
62
desktop_DATA = kid3.desktop