diff options
| author | Michael Roitzsch <mroi@users.sourceforge.net> | 2003-05-14 16:21:44 +0000 |
|---|---|---|
| committer | Michael Roitzsch <mroi@users.sourceforge.net> | 2003-05-14 16:21:44 +0000 |
| commit | 8e1d76f47f530f3b76cfe81eb9da1348df17e801 (patch) | |
| tree | 71ad00b972db4f7ecd0a79dbf2519cb6c1c8f5ae /misc/Makefile.common | |
| parent | 204f53f90ab41ffad6a6cbc5aac4dcce6b609b47 (diff) | |
| download | xine-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/Makefile.common')
| -rw-r--r-- | misc/Makefile.common | 43 |
1 files changed, 43 insertions, 0 deletions
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 |
