summaryrefslogtreecommitdiff
path: root/misc
diff options
context:
space:
mode:
authorMichael Roitzsch <mroi@users.sourceforge.net>2003-05-14 16:21:44 +0000
committerMichael Roitzsch <mroi@users.sourceforge.net>2003-05-14 16:21:44 +0000
commit8e1d76f47f530f3b76cfe81eb9da1348df17e801 (patch)
tree71ad00b972db4f7ecd0a79dbf2519cb6c1c8f5ae /misc
parent204f53f90ab41ffad6a6cbc5aac4dcce6b609b47 (diff)
downloadxine-lib-8e1d76f47f530f3b76cfe81eb9da1348df17e801.tar.gz
xine-lib-8e1d76f47f530f3b76cfe81eb9da1348df17e801.tar.bz2
as announced on xine-devel, this is the big Makefile refactoring:
extracted some common targets and variables into a common Makefile which is then included CVS patchset: 4844 CVS date: 2003/05/14 16:21:44
Diffstat (limited to 'misc')
-rw-r--r--misc/Makefile.am15
-rw-r--r--misc/Makefile.common43
-rw-r--r--misc/fonts/Makefile.am15
3 files changed, 47 insertions, 26 deletions
diff --git a/misc/Makefile.am b/misc/Makefile.am
index 0bc97ffc8..7c7569cda 100644
--- a/misc/Makefile.am
+++ b/misc/Makefile.am
@@ -1,3 +1,5 @@
+include $(top_srcdir)/misc/Makefile.common
+
SUBDIRS = fonts
EXTRA_DIST = build_rpms.sh \
@@ -16,19 +18,6 @@ bin_SCRIPTS = xine-config
pkgconfigdir=$(libdir)/pkgconfig
pkgconfig_DATA=libxine.pc
-debug:
-
-install-debug: install
-
-mostlyclean-generic:
- -rm -f *~ \#* .*~ .\#*
-
-
-maintainer-clean-generic:
- -@echo "This command is intended for maintainers to use;"
- -@echo "it deletes files that may require special tools to rebuild."
- -rm -f Makefile.in
-
xine-fontconv: xine-fontconv.c
$(CC) -W -Wall -g -o xine-fontconv xine-fontconv.c -lz `freetype-config --cflags` `freetype-config --libs`
diff --git a/misc/Makefile.common b/misc/Makefile.common
new file mode 100644
index 000000000..399aa54fb
--- /dev/null
+++ b/misc/Makefile.common
@@ -0,0 +1,43 @@
+LIBTOOL = $(SHELL) $(top_builddir)/libtool-nofpic
+XINE_LIB = $(top_builddir)/src/xine-engine/libxine.la
+
+$(XINE_LIB):
+ @cd $(top_srcdir)/src/xine-engine && $(MAKE)
+
+install-data-hook:
+ @if [ -x "$(top_srcdir)/post-install.sh" ] && [ "$$MAKELEVEL" -eq 0 ]; then \
+ $(top_srcdir)/post-install.sh; \
+ fi
+
+debug:
+ @$(MAKE) CFLAGS="$(DEBUG_CFLAGS)"
+
+install-debug: debug
+ @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
+ @list='$(SUBDIRS)'; for subdir in $$list; do \
+ (cd $$subdir && $(MAKE) $@) || exit; \
+ done;
+ $(MAKE) $(AM_MAKEFLAGS) install-data-hook
+
+install-includeHEADERS: $(include_HEADERS)
+ @$(NORMAL_INSTALL)
+ $(mkinstalldirs) $(DESTDIR)$(includedir)/xine
+ @list='$(include_HEADERS)'; for p in $$list; do \
+ if test -f "$$p"; then d= ; else d="$(srcdir)/"; fi; \
+ echo " $(INSTALL_DATA) $$d$$p $(DESTDIR)$(includedir)/xine/$$p"; \
+ $(INSTALL_DATA) $$d$$p $(DESTDIR)$(includedir)/xine/$$p; \
+ done
+
+uninstall-includeHEADERS:
+ @$(NORMAL_UNINSTALL)
+ list='$(include_HEADERS)'; for p in $$list; do \
+ rm -f $(DESTDIR)$(includedir)/xine/$$p; \
+ done
+
+mostlyclean-generic:
+ -rm -f *~ \#* .*~ .\#*
+
+maintainer-clean-generic:
+ -@echo "This command is intended for maintainers to use;"
+ -@echo "it deletes files that may require special tools to rebuild."
+ -rm -f Makefile.in
diff --git a/misc/fonts/Makefile.am b/misc/fonts/Makefile.am
index 6da9d4e2c..1fb649c6a 100644
--- a/misc/fonts/Makefile.am
+++ b/misc/fonts/Makefile.am
@@ -1,3 +1,5 @@
+include $(top_srcdir)/misc/Makefile.common
+
datadir = $(XINE_FONTDIR)
data_DATA = \
cetus-16.xinefont.gz \
@@ -33,16 +35,3 @@ data_DATA = \
# font used for osd
#
EXTRA_DIST = cetus.ttf README.cetus $(data_DATA)
-
-debug:
-
-install-debug: install
-
-mostlyclean-generic:
- -rm -f *~ \#* .*~ .\#*
-
-
-maintainer-clean-generic:
- -@echo "This command is intended for maintainers to use;"
- -@echo "it deletes files that may require special tools to rebuild."
- -rm -f Makefile.in