comparison Makefile @ 3519:c87577a541de

Patch by Adam Di Carlo <adam@onshore-devel.com>: * Makefile: use a mandir setting, default to ${prefix}/man; this lets us override it for Debian for instance which uses /usr/share/man rather than /usr/man
author pl
date Sun, 16 Dec 2001 11:32:59 +0000
parents e972025d1c46
children fb9fd7e2dd35
comparison
equal deleted inserted replaced
3518:5ca90a668017 3519:c87577a541de
15 PRG_MENCODER = mencoder 15 PRG_MENCODER = mencoder
16 16
17 #prefix = /usr/local 17 #prefix = /usr/local
18 BINDIR = ${prefix}/bin 18 BINDIR = ${prefix}/bin
19 # BINDIR = /usr/local/bin 19 # BINDIR = /usr/local/bin
20 MANDIR = ${prefix}/man
20 21
21 # a BSD compatible 'install' program 22 # a BSD compatible 'install' program
22 INSTALL = install 23 INSTALL = install
23 24
24 SRCS_COMMON = ima4.c xacodec.c cpudetect.c mp_msg.c ac3-iec958.c dec_audio.c dec_video.c msvidc.c fli.c codec-cfg.c cfgparser.c my_profile.c 25 SRCS_COMMON = ima4.c xacodec.c cpudetect.c mp_msg.c ac3-iec958.c dec_audio.c dec_video.c msvidc.c fli.c codec-cfg.c cfgparser.c my_profile.c
187 if test ! -d $(BINDIR) ; then mkdir -p $(BINDIR) ; fi 188 if test ! -d $(BINDIR) ; then mkdir -p $(BINDIR) ; fi
188 $(INSTALL) -m 755 -s $(PRG) $(BINDIR)/$(PRG) 189 $(INSTALL) -m 755 -s $(PRG) $(BINDIR)/$(PRG)
189 ifeq ($(GUI),yes) 190 ifeq ($(GUI),yes)
190 -ln -sf $(BINDIR)/$(PRG) $(BINDIR)/gmplayer 191 -ln -sf $(BINDIR)/$(PRG) $(BINDIR)/gmplayer
191 endif 192 endif
192 if test ! -d $(prefix)/man/man1 ; then mkdir -p $(prefix)/man/man1; fi 193 if test ! -d $(MANDIR)/man1 ; then mkdir -p $(MANDIR)/man1; fi
193 $(INSTALL) -c -m 644 DOCS/mplayer.1 $(prefix)/man/man1/mplayer.1 194 $(INSTALL) -c -m 644 DOCS/mplayer.1 $(MANDIR)/man1/mplayer.1
194 ifeq ($(MENCODER),yes) 195 ifeq ($(MENCODER),yes)
195 $(INSTALL) -m 755 -s $(PRG_MENCODER) $(BINDIR)/$(PRG_MENCODER) 196 $(INSTALL) -m 755 -s $(PRG_MENCODER) $(BINDIR)/$(PRG_MENCODER)
196 $(INSTALL) -c -m 644 DOCS/mencoder.1 $(prefix)/man/man1/mencoder.1 197 $(INSTALL) -c -m 644 DOCS/mencoder.1 $(MANDIR)/man1/mencoder.1
197 endif 198 endif
198 199
199 ifeq ($(CSS_USE),yes) 200 ifeq ($(CSS_USE),yes)
200 @echo "Following task requires root privs. If it fails don't panic" 201 @echo "Following task requires root privs. If it fails don't panic"
201 @echo "however it means you can't use fibmap_mplayer." 202 @echo "however it means you can't use fibmap_mplayer."
203 @echo "able to play encrypted DVDs." 204 @echo "able to play encrypted DVDs."
204 -$(INSTALL) -o 0 -g 0 -m 4755 -s $(PRG_FIBMAP) $(BINDIR)/$(PRG_FIBMAP) 205 -$(INSTALL) -o 0 -g 0 -m 4755 -s $(PRG_FIBMAP) $(BINDIR)/$(PRG_FIBMAP)
205 endif 206 endif
206 207
207 uninstall: 208 uninstall:
208 -rm -f $(BINDIR)/$(PRG) $(BINDIR)/gmplayer $(prefix)/man/man1/mplayer.1 209 -rm -f $(BINDIR)/$(PRG) $(BINDIR)/gmplayer $(MANDIR)/man1/mplayer.1
209 -rm -f $(BINDIR)/$(PRG_FIBMAP) 210 -rm -f $(BINDIR)/$(PRG_FIBMAP)
210 -rm -f $(BINDIR)/$(PRG_MENCODER) $(prefix)/man/man1/mencoder.1 211 -rm -f $(BINDIR)/$(PRG_MENCODER) $(MANDIR)/man1/mencoder.1
211 @echo "Uninstall completed" 212 @echo "Uninstall completed"
212 213
213 clean: 214 clean:
214 -rm -f *.o *~ $(OBJS) 215 -rm -f *.o *~ $(OBJS)
215 216