diff Makefile @ 2089:d7920c8257e2

BSD/OS support
author arpi
date Fri, 05 Oct 2001 00:39:54 +0000
parents 14c4f848a767
children d2bed9c43e3b
line wrap: on
line diff
--- a/Makefile	Fri Oct 05 00:13:31 2001 +0000
+++ b/Makefile	Fri Oct 05 00:39:54 2001 +0000
@@ -113,15 +113,19 @@
 	$(CC) $(CFLAGS) -g codec-cfg.c -o $(PRG_CFG) -DCODECS2HTML
 
 install: $(PRG) $(PRG_FIBMAP)
-	install -d $(BINDIR)
+	if [ ! -e $(BINDIR) ]; then \
+		mkdir -p $(BINDIR); \
+	fi
 	install -m 755 -s $(PRG) $(BINDIR)/$(PRG)
-	install -d $(prefix)/man/man1
-	install -m 644 DOCS/mplayer.1 $(prefix)/man/man1/mplayer.1
+	if [ ! -e $(prefix)/man/man1 ]; then \
+		mkdir -p $(prefix)/man/man1; \
+	fi
+	install -c -m 644 DOCS/mplayer.1 $(prefix)/man/man1/mplayer.1
 	@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 encrypted DVDs."
-	install -o 0 -g 0 -m 4755 -s $(PRG_FIBMAP) $(BINDIR)/$(PRG_FIBMAP)
+	-install -o 0 -g 0 -m 4755 -s $(PRG_FIBMAP) $(BINDIR)/$(PRG_FIBMAP)
 
 clean:
 	rm -f *.o *~ $(OBJS)