summaryrefslogtreecommitdiff
path: root/misc/Makefile.common
blob: 7c53f329bf68d0d04b9fcb513fb81b9363e607d2 (plain)
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
XINE_LIB = $(top_builddir)/src/xine-engine/libxine.la

xineincludedir = $(includedir)/xine

xineplugdir = $(XINE_PLUGINDIR)
xineplug_ldflags = $(LDFLAGS_NOUNDEFINED) $(GCSECTIONS) -avoid-version -module

xinepostdir = $(XINE_PLUGINDIR)/post
vidixdir = $(XINE_PLUGINDIR)/vidix

$(XINE_LIB):
	$(MAKE) -C $(top_builddir)/src/xine-engine

$(top_builddir)/contrib/libxdg-basedir/libxdg-basedir.la:
	$(MAKE) -C $(top_builddir)/contrib/libxdg-basedir

install-data-hook:
	@if test $$MAKELEVEL -le 4 ; then \
	  if test -x "$(top_srcdir)/post-install.sh" ; then \
	    $(top_srcdir)/post-install.sh ; \
	  fi; \
	fi; \
	if test -x /usr/bin/chcon -a "`id -u`" -eq 0; then \
	  list='$(xineplug_LTLIBRARIES)'; \
	    for p in $$list; do \
	      p="`echo $$p | sed -e 's/\.la$$/\.so/g;s|^.*/||'`"; \
	      echo " chcon system_u:object_r:texrel_shlib_t $(DESTDIR)$(xineplugdir)/$$p"; \
	      chcon system_u:object_r:texrel_shlib_t $(DESTDIR)$(xineplugdir)/$$p || :; \
	    done; \
	  list='$(xinepost_LTLIBRARIES)'; \
	    for p in $$list; do \
	      p="`echo $$p | sed -e 's/\.la$$/\.so/g;s|^.*/||'`"; \
	      echo " chcon system_u:object_r:texrel_shlib_t $(DESTDIR)$(xinepostdir)/$$p"; \
	      chcon system_u:object_r:texrel_shlib_t $(DESTDIR)$(xinepostdir)/$$p || :; \
	    done; \
	fi

pass1:
	@$(MAKE) MULTIPASS_CFLAGS="$(PASS1_CFLAGS)"

pass2:
	@$(MAKE) MULTIPASS_CFLAGS="$(PASS2_CFLAGS)"

uninstall-hook:
	@list='$(xineplug_LTLIBRARIES)'; for p in $$list; do \
	  p="`echo $$p | sed -e 's/\.la$$/\.so/g;s|^.*/||'`"; \
	  echo " rm -f $(DESTDIR)$(xineplugdir)/$$p"; \
	  rm -f $(DESTDIR)$(xineplugdir)/$$p; \
	done;
	@list='$(xinepost_LTLIBRARIES)'; for p in $$list; do \
	  p="`echo $$p | sed -e 's/\.la$$/\.so/g;s|^.*/||'`"; \
	  echo " rm -f $(DESTDIR)$(xinepostdir)/$$p"; \
	  rm -f $(DESTDIR)$(xinepostdir)/$$p; \
	done;
	@list='$(vidix_LTLIBRARIES)'; for p in $$list; do \
	  p="`echo $$p | sed -e 's/\.la$$/\.so/g;s|^.*/||'`"; \
	  echo " rm -f $(DESTDIR)$(vidixdir)/$$p"; \
	  rm -f $(DESTDIR)$(vidixdir)/$$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