3 MAKEFILESDIR
= $(ROOTDIR
)/makefiles
5 include $(MAKEFILESDIR
)/config.mk
10 ALL_SUBDIRS
= src src
/migration src
/options src
/description src
/collection src
/bookmodel src
/formats src
/formats
/fb2 src
/formats
/docbook src
/formats
/html src
/formats
/pdb src
/formats
/txt src
/formats
/tcr src
/formats
/chm src
/formats
/xhtml src
/formats
/oeb src
/formats
/rtf src
/formats
/openreader src
/formats
/dummy src
/formats
/util src
/external src
/optionsDialog src
/fbreader src
/encodingOption
11 ALL_ARCHSUBDIRS
= desktop pdaxrom opie zaurus maemo openzaurus pma400 win32
13 SUBDIRS
= src
/migration src
/options src
/description src
/collection src
/bookmodel src
/formats src
/formats
/fb2 src
/formats
/html src
/formats
/pdb src
/formats
/txt src
/formats
/tcr src
/formats
/chm src
/formats
/xhtml src
/formats
/oeb src
/formats
/rtf src
/formats
/openreader src
/formats
/util src
/external src
/optionsDialog src
/fbreader src
/encodingOption
16 @for subdir in
$(SUBDIRS
); do \
17 if
! $(MAKE
) -C
$$subdir -f
$(MAKEFILESDIR
)/subdir.mk
; then \
21 @echo
-n
"Linking $(TARGET) ..."
22 @
$(LD
) $(LDFLAGS
) -o
$(TARGET
) `find src -name *.o` -L
$(ROOTDIR
)/zlibrary
/text
-lzltext
$(CORE_LIBS
)
25 FBSHAREDIR
= $(DESTDIR
)$(subst %APPLICATION_PATH
%\\\\,/,$(SHAREDIR
))/FBReader
26 VARIANT
= $(TARGET_ARCH
)
27 ifneq "$(RESOLUTION)" ""
28 VARIANT
= $(TARGET_ARCH
)_
$(RESOLUTION
)
31 APPIMAGEDIR_REAL
= $(subst \\\\,/,$(subst %APPLICATION_PATH
%\\\\,/,$(subst %application_name
%,$(target
),$(subst %APPLICATION_NAME
%,$(TARGET
),$(APPIMAGEDIR
)))))
34 @
install -d
$(DESTDIR
)$(BINDIR
)
35 @
install $(TARGET
) $(DESTDIR
)$(BINDIR
)/FBReader
36 @
install -d
$(FBSHAREDIR
)
37 @
install -d
$(FBSHAREDIR
)/help
38 @.
/scripts
/install_help.sh
$(VARIANT
) $(FBSHAREDIR
)/help
39 @
install -d
$(FBSHAREDIR
)/formats
/html
40 @
install -m
0644 data
/formats
/html
/html.ent
$(FBSHAREDIR
)/formats
/html
41 @
install -d
$(FBSHAREDIR
)/formats
/xhtml
42 @
install -m
0644 $(wildcard data
/formats
/xhtml
/*.ent
) $(FBSHAREDIR
)/formats
/xhtml
43 @
install -d
$(FBSHAREDIR
)/default
44 @.
/scripts
/install_toolbar_and_menu.sh
$(VARIANT
) $(FBSHAREDIR
)/default
45 @
install -m
0644 data
/default
/external.
$(TARGET_ARCH
).xml
$(FBSHAREDIR
)/default
/external.xml
46 @if
[ -f data
/default
/messages.
$(TARGET_ARCH
).xml
]; then \
47 install -m
0644 data
/default
/messages.
$(TARGET_ARCH
).xml
$(FBSHAREDIR
)/default
/messages.xml
; \
49 @
install -d
$(FBSHAREDIR
)/resources
50 @
install -m
0644 $(wildcard data
/resources
/*.xml
) $(FBSHAREDIR
)/resources
51 @
install -d
$(DESTDIR
)$(APPIMAGEDIR_REAL
)
52 @
install -m
0644 $(wildcard icons
/toolbar
/$(VARIANT
)/*.
*) $(DESTDIR
)$(APPIMAGEDIR_REAL
)
53 @
install -m
0644 $(wildcard icons
/filetree
/$(VARIANT
)/*.
*) $(DESTDIR
)$(APPIMAGEDIR_REAL
)
54 @
install -m
0644 $(wildcard icons
/booktree
/$(VARIANT
)/*.
*) $(DESTDIR
)$(APPIMAGEDIR_REAL
)
55 @make
-C
$(TARGET_ARCH
) RESOLUTION
=$(RESOLUTION
) install
58 @for subdir in
$(ALL_SUBDIRS
); do \
59 $(MAKE
) -C
$$subdir -f
$(MAKEFILESDIR
)/subdir.mk
clean; \
61 @for subdir in
$(ALL_ARCHSUBDIRS
); do \
62 cd
$$subdir; make
clean; cd ..
; \