summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorjkeil <jkeil@b3059339-0415-0410-9bf9-f77b7e298cf2>2001-07-14 16:54:30 +0000
committerjkeil <jkeil@b3059339-0415-0410-9bf9-f77b7e298cf2>2001-07-14 16:54:30 +0000
commit7b813ca0ec725307c44d8663908da63f74c33035 (patch)
treeea151fac521b9857aab5bb2aacb59a8dfc12cc9d /Makefile
parentecbc8847c41ce2c207ab614717755385a603c87f (diff)
downloadmpv-7b813ca0ec725307c44d8663908da63f74c33035.tar.bz2
mpv-7b813ca0ec725307c44d8663908da63f74c33035.tar.xz
Added some directory existance tests to the distclean and depend targets, so
that the user can disable the libavcodec code by removing/renaming the libavcodec subdirectory once again. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@1320 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile14
1 files changed, 11 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index 2c86dbea57..9acf09045c 100644
--- a/Makefile
+++ b/Makefile
@@ -111,14 +111,18 @@ install: $(PRG) $(PRG_FIBMAP)
@echo "Following task requires root privs. If it fails don't panic"
@echo "however it means you can't use fibmap_mplayer."
@echo "Without this (or without running mplayer as root) you won't be"
- @echo "able to play DVDs."
+ @echo "able to play encrypted DVDs."
install -D -o root -g root -m 4755 -s $(PRG_FIBMAP) $(BINDIR)/$(PRG_FIBMAP)
clean:
rm -f *.o *~ $(OBJS)
distclean:
- @for a in mp3lib libac3 libmpeg2 opendivx libavcodec encore libvo libao2 loader loader/DirectShow drivers drivers/syncfb ; do $(MAKE) -C $$a distclean ; done
+ @for a in mp3lib libac3 libmpeg2 opendivx libavcodec encore libvo libao2 loader loader/DirectShow drivers drivers/syncfb ; do \
+ if [ -d $$a ] ; then \
+ $(MAKE) -C $$a distclean ; \
+ fi; \
+ done
rm -f *~ $(PRG) $(PRG_FIBMAP) $(PRG_HQ) $(PRG_AVIP) $(PRG_TV) $(OBJS) *.o *.a .depend
dep: depend
@@ -126,7 +130,11 @@ dep: depend
depend:
./version.sh
$(CC) -MM $(CFLAGS) mplayer.c $(SRCS) 1>.depend
- @for a in mp3lib libac3 libmpeg2 libvo libao2 opendivx libavcodec encore loader/DirectShow ; do $(MAKE) -C $$a dep ; done
+ @for a in mp3lib libac3 libmpeg2 libvo libao2 opendivx libavcodec encore loader/DirectShow ; do \
+ if [ -d $$a ] ; then \
+ $(MAKE) -C $$a dep ; \
+ fi ; \
+ done
# ./configure must be run if it changed in CVS
config.h: configure