Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

[r10224]: trunk / rosegarden / Makefile.in Maximize Restore History

Download this file

Makefile.in    140 lines (109 with data), 3.9 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
VERSION = @PACKAGE_VERSION@
PREFIX = /usr/local
CXX = @CXX@
LD = @CXX@
INSTALL = @INSTALL@
MKDIR_P = @MKDIR_P@
PERL = @PERL@
XARGS = @XARGS@
MAKEDEPEND = @MAKEDEPEND@
MOC = @MOC@
UIC = @UIC@
RCC = @RCC@
LUPDATE = @LUPDATE@
LRELEASE = @LRELEASE@
CXXFLAGS = @CXXFLAGS@ \
@HAVES@ \
@CFLAGS@ \
@QT_CXXFLAGS@ \
@JACK_CFLAGS@ \
@ALSA_CFLAGS@ \
@DSSI_CFLAGS@ \
@liblo_CFLAGS@ \
@lrdf_CFLAGS@ \
@Xft_CFLAGS@ \
@fftw3f_CFLAGS@ \
-D'VERSION="$(VERSION)"' \
-Isrc
MOCFLAGS = @HAVES@
LIBS = @QT_LIBS@ \
@JACK_LIBS@ \
@ALSA_LIBS@ \
@DSSI_LIBS@ \
@liblo_LIBS@ \
@lrdf_LIBS@ \
@Xft_LIBS@ \
@fftw3f_LIBS@ \
@LIBS@
INSTBINDIR = $(DESTDIR)$(PREFIX)/bin
INSTDATADIR = $(DESTDIR)$(PREFIX)/share/rosegarden
RESOURCES = $(wildcard data/*.qrc data/*/*.qrc src/*.qrc src/*/*.qrc src/*/*/*.qrc src/*/*/*/*.qrc)
QRCSOURCES = $(patsubst %.qrc,%.cpp,$(RESOURCES))
HEADERS = $(filter-out templates/template.h, $(wildcard src/*.h src/*/*.h src/*/*/*.h src/*/*/*/*.h src/*/*/*/*/*.h))
SOURCES = $(QRCSOURCES) $(filter-out templates/template.cpp, $(wildcard src/*.cpp src/*/*.cpp src/*/*/*.cpp src/*/*/*/*.cpp src/*/*/*/*/*.cpp))
QHEADERS = $(shell fgrep -l Q_OBJECT $(HEADERS))
OBJECTS = $(patsubst %.cpp,%.o,$(SOURCES))
QSOURCES = $(patsubst %.h,%.moc,$(QHEADERS))
UI = $(wildcard src/*/*/*.ui)
UIHEADERS = $(patsubst %.ui,%.h,$(UI))
RCS = $(wildcard data/ui/*.rc)
TRANSLATIONS = $(filter-out locale/rosegarden.ts, $(wildcard locale/*.ts))
all: $(QSOURCES) $(UIHEADERS) $(UISOURCES) $(UIMOC) $(OBJECTS) $(LIBRARIES) $(EXECUTABLES) rosegarden
rosegarden: $(OBJECTS)
$(CXX) $(LDFLAGS) -o $@ $^ $(LIBS)
%.h: %.ui
$(UIC) $< > $@
%.cpp: %.ui %.h
$(UIC) -pch $(patsubst %.cpp,%.moc,$@) -impl $(patsubst %.cpp,%.h,$@) $(patsubst %.cpp,%.ui,$@) > $@
%.moc: %.h
$(MOC) $(MOCFLAGS) $< -o $@
%.cpp: %.qrc
$(RCC) $< -o $@
%.o: %.cpp
$(CXX) -c $(CXXFLAGS) $< -o $@
instrument-ts:
$(PERL) scripts/extract_instrument_tr_strings.pl `ls -1 data/presets/*.xml` > data/InstrumentStrings.cpp
menu-ts:
$(PERL) scripts/extract_menu_tr_strings.pl `ls -1 data/ui/*.rc` > data/QMenuStrings.cpp
ts: menu-ts instrument-ts
$(MKDIR_P) locale
$(LUPDATE) $(HEADERS) $(SOURCES) data/QMenuStrings.cpp data/InstrumentStrings.cpp -ts locale/rosegarden.ts $(TRANSLATIONS)
ts-noobsolete: menu-ts instrument-ts
$(MKDIR_P) locale
$(LUPDATE) -noobsolete $(HEADERS) $(SOURCES) data/QMenuStrings.cpp data/InstrumentStrings.cpp -ts locale/rosegarden.ts $(TRANSLATIONS)
locale:
$(LRELEASE) $(TRANSLATIONS)
clean:
rm -f $(QSOURCES) $(UIHEADERS) $(UISOURCES) $(UIMOC) $(OBJECTS) $(LIBRARIES) $(EXECUTABLES)
test:
echo $(QSOURCES)
dependencies: $(SOURCES) $(HEADERS) Makefile
@echo Rebuilding dependencies file...
@rm -f $@
@touch $@
@echo $(SOURCES) | $(XARGS) --max-args=100 $(MAKEDEPEND) -f$@ -a -Y -Isrc >/dev/null 2>&1
@echo Done
qrc:
bash ./scripts/rebuild-qrc
rm -f data/data.o
rm -f data/data.cpp
install:
$(MKDIR_P) -m 755 $(INSTBINDIR)
$(MKDIR_P) -m 755 $(INSTDATADIR)/examples
$(MKDIR_P) -m 755 $(INSTDATADIR)/library
$(INSTALL) -m 644 data/examples/* $(INSTDATADIR)/examples/
$(INSTALL) -m 644 data/library/* $(INSTDATADIR)/library/
$(INSTALL) -m 755 rosegarden $(INSTBINDIR)/rosegarden
$(INSTALL) -m 755 src/helpers/rosegarden-audiofile-importer $(INSTBINDIR)
$(INSTALL) -m 755 src/helpers/rosegarden-lilypondview $(INSTBINDIR)
$(INSTALL) -m 755 src/helpers/rosegarden-project-package $(INSTBINDIR)
uninstall:
rm -rf $(INSTDATADIR)/examples
rm -rf $(INSTDATADIR)/library
rmdir $(INSTDATADIR)
rm -f $(INSTBINDIR)/rosegarden
rm -f $(INSTBINDIR)/rosegarden-audiofile-importer
rm -f $(INSTBINDIR)/rosegarden-lilypondview
rm -f $(INSTBINDIR)/rosegarden-project-package
.PHONY: instrument-ts menu-ts ts ts-noobsolete locale
include dependencies