Changeset c085b215f4527c99b144a3683560901f5da8f1f8
- Timestamp:
- 07/27/01 18:14:58
(7 years ago)
- Author:
- Sam Hocevar <sam@videolan.org>
- git-committer:
- Sam Hocevar <sam@videolan.org> 996250498 +0000
- git-parent:
[4945d2bb3621b899aca49359c435d0dcfcc2ec1b]
- git-author:
- Sam Hocevar <sam@videolan.org> 996250498 +0000
- Message:
- Added a make uninstall rule.
-
Files:
-
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
| r4945d2b |
rc085b21 |
|
| 9 | 9 | Fri, 27 Jul 2001 03:30:44 +0200 |
|---|
| 10 | 10 | |
|---|
| | 11 | * Added a make uninstall rule. |
|---|
| 11 | 12 | * Changed libdvdcss API to force binary incompatibility. Yeah, this is |
|---|
| 12 | 13 | evil, but if we don't do it now we'll have to do it when more people |
|---|
| r945f294 |
rc085b21 |
|
| 13 | 13 | Here is a shortcut to copy-paste for a complete build: |
|---|
| 14 | 14 | |
|---|
| 15 | | make distclean && ./configure --prefix=/usr --enable-gnome \ |
|---|
| | 15 | make distclean ; ./configure --prefix=/usr --enable-gnome \ |
|---|
| 16 | 16 | --enable-fb --with-glide --with-ggi --with-sdl --enable-esd \ |
|---|
| 17 | 17 | --enable-mga --enable-gtk --enable-qt --enable-xvideo --enable-alsa |
|---|
| … | … | |
| 19 | 19 | If you intend to debug stuff, you may want to disable optimizations: |
|---|
| 20 | 20 | |
|---|
| 21 | | make distclean && ./configure --prefix=/usr --enable-gnome \ |
|---|
| | 21 | make distclean ; ./configure --prefix=/usr --enable-gnome \ |
|---|
| 22 | 22 | --enable-fb --with-glide --with-ggi --with-sdl --enable-esd \ |
|---|
| 23 | 23 | --enable-mga --enable-gtk --enable-qt --enable-xvideo --enable-alsa \ |
|---|
| … | … | |
| 26 | 26 | It is also possible to cross-compile for the Win32 platform using mingw32: |
|---|
| 27 | 27 | |
|---|
| 28 | | make distclean && CC=i586-mingw32msvc-gcc CFLAGS=-I/usr/i586-mingw32msvc \ |
|---|
| | 28 | make distclean ; CC=i586-mingw32msvc-gcc CFLAGS=-I/usr/i586-mingw32msvc \ |
|---|
| 29 | 29 | RANLIB=i586-mingw32msvc-ranlib ./configure --host=i386-mingw32msvc \ |
|---|
| 30 | 30 | --target=i386-mingw32msvc --build=i386-linux --disable-dsp \ |
|---|
| rf406134 |
rc085b21 |
|
| 51 | 51 | To cross-compile for the Win32 platform using mingw32: |
|---|
| 52 | 52 | |
|---|
| 53 | | make distclean && CC=i586-mingw32msvc-gcc CFLAGS=-I/usr/i586-mingw32msvc \ |
|---|
| | 53 | make distclean ; CC=i586-mingw32msvc-gcc CFLAGS=-I/usr/i586-mingw32msvc \ |
|---|
| 54 | 54 | RANLIB=i586-mingw32msvc-ranlib WINDRES=i586-mingw32msvc-windres \ |
|---|
| 55 | 55 | ./configure --host=i386-mingw32msvc \ |
|---|
| re7345b8 |
rc085b21 |
|
| 13 | 13 | It is also possible to cross-compile for the Win32 platform using mingw32: |
|---|
| 14 | 14 | |
|---|
| 15 | | make distclean && CC=i586-mingw32msvc-gcc CFLAGS=-I/usr/i586-mingw32msvc \ |
|---|
| | 15 | CC=i586-mingw32msvc-gcc CFLAGS=-I/usr/i586-mingw32msvc \ |
|---|
| 16 | 16 | RANLIB=i586-mingw32msvc-ranlib ./configure --host=i386-mingw32msvc \ |
|---|
| 17 | 17 | --target=i386-mingw32msvc --build=i386-linux |
|---|
| r76fcb7f |
rc085b21 |
|
| 3 | 3 | ############################################################################### |
|---|
| 4 | 4 | |
|---|
| 5 | | -include Makefile.opts |
|---|
| | 5 | include Makefile.opts |
|---|
| 6 | 6 | |
|---|
| 7 | 7 | ############################################################################### |
|---|
| … | … | |
| 113 | 113 | vlc-clean: |
|---|
| 114 | 114 | rm -f $(C_OBJ) $(CPP_OBJ) |
|---|
| 115 | | rm -f vlc gnome-vlc gvlc kvlc qvlc |
|---|
| | 115 | rm -f vlc gnome-vlc gvlc kvlc qvlc vlc.exe |
|---|
| 116 | 116 | rm -Rf vlc.app |
|---|
| 117 | 117 | |
|---|
| … | … | |
| 128 | 128 | install: libdvdcss-install vlc-install plugins-install |
|---|
| 129 | 129 | |
|---|
| | 130 | uninstall: libdvdcss-uninstall vlc-uninstall plugins-uninstall |
|---|
| | 131 | |
|---|
| 130 | 132 | vlc-install: |
|---|
| 131 | 133 | mkdir -p $(DESTDIR)$(bindir) |
|---|
| … | … | |
| 139 | 141 | $(INSTALL) -m 644 share/*.xpm $(DESTDIR)$(datadir)/videolan |
|---|
| 140 | 142 | |
|---|
| | 143 | vlc-uninstall: |
|---|
| | 144 | rm vlc $(DESTDIR)$(bindir)/vlc |
|---|
| | 145 | ifneq (,$(ALIASES)) |
|---|
| | 146 | for alias in $(ALIASES) ; do if test $$alias ; then rm -f $(DESTDIR)$(bindir)/$$alias ; fi ; done |
|---|
| | 147 | endif |
|---|
| | 148 | rm -f $(DESTDIR)$(datadir)/videolan/*.psf |
|---|
| | 149 | rm -f $(DESTDIR)$(datadir)/videolan/*.png |
|---|
| | 150 | rm -f $(DESTDIR)$(datadir)/videolan/*.xpm |
|---|
| | 151 | |
|---|
| 141 | 152 | plugins-install: |
|---|
| 142 | 153 | mkdir -p $(DESTDIR)$(libdir)/videolan/vlc |
|---|
| … | … | |
| 145 | 156 | endif |
|---|
| 146 | 157 | |
|---|
| | 158 | plugins-uninstall: |
|---|
| | 159 | ifneq (,$(PLUGINS)) |
|---|
| | 160 | rm -f $(DESTDIR)$(libdir)/videolan/vlc/*.so |
|---|
| | 161 | endif |
|---|
| | 162 | |
|---|
| 147 | 163 | libdvdcss-install: |
|---|
| 148 | 164 | cd extras/libdvdcss && $(MAKE) install |
|---|
| | 165 | |
|---|
| | 166 | libdvdcss-uninstall: |
|---|
| | 167 | cd extras/libdvdcss && $(MAKE) uninstall |
|---|
| 149 | 168 | |
|---|
| 150 | 169 | show: |
|---|
| … | … | |
| 186 | 205 | # copy misc files |
|---|
| 187 | 206 | cp vlc.spec AUTHORS COPYING ChangeLog INSTALL INSTALL.libdvdcss \ |
|---|
| 188 | | README TODO todo.pl \ |
|---|
| | 207 | INSTALL-win32.txt README TODO todo.pl \ |
|---|
| 189 | 208 | Makefile.opts.in Makefile.dep Makefile.modules \ |
|---|
| 190 | 209 | configure configure.in install-sh config.sub config.guess \ |
|---|
| … | … | |
| 195 | 214 | cp debian/$$file /tmp/vlc-${PROGRAM_VERSION}/debian/ ; \ |
|---|
| 196 | 215 | done |
|---|
| 197 | | for file in default8x16.psf default8x9.psf vlc_beos.rsrc vlc.icns ; do \ |
|---|
| 198 | | cp share/$$file /tmp/vlc-${PROGRAM_VERSION}/share/ ; done |
|---|
| | 216 | for file in default8x16.psf default8x9.psf vlc_beos.rsrc vlc.icns \ |
|---|
| | 217 | gvlc_win32.ico vlc_win32_rc.rc ; do \ |
|---|
| | 218 | cp share/$$file /tmp/vlc-${PROGRAM_VERSION}/share/ ; \ |
|---|
| | 219 | done |
|---|
| 199 | 220 | for icon in vlc gvlc qvlc gnome-vlc kvlc ; do \ |
|---|
| 200 | 221 | cp share/$$icon.xpm share/$$icon.png \ |
|---|
| … | … | |
| 225 | 246 | # Makefiles |
|---|
| 226 | 247 | sed -e 's#^install:#install-unused:#' \ |
|---|
| | 248 | -e 's#^uninstall:#uninstall-unused:#' \ |
|---|
| 227 | 249 | -e 's#^clean:#clean-unused:#' \ |
|---|
| 228 | 250 | -e 's#^all:.*#all: libdvdcss#' \ |
|---|
| 229 | 251 | -e 's#^libdvdcss-install:#install:#' \ |
|---|
| | 252 | -e 's#^libdvdcss-uninstall:#uninstall:#' \ |
|---|
| 230 | 253 | -e 's#^libdvdcss-clean:#clean:#' \ |
|---|
| 231 | 254 | < Makefile > /tmp/libdvdcss-${LIBDVDCSS_VERSION}/Makefile |
|---|
| r76fcb7f |
rc085b21 |
|
| 42 | 42 | rm -f $(DESTDIR)$(libdir)/libdvdcss.so.$(LIBDVDCSS_MAJOR) && ln -s libdvdcss.so.$(LIBDVDCSS_VERSION) $(DESTDIR)$(libdir)/libdvdcss.so.$(LIBDVDCSS_MAJOR) |
|---|
| 43 | 43 | |
|---|
| | 44 | uninstall: |
|---|
| | 45 | rm -f $(DESTDIR)$(includedir)/videolan/dvdcss.h |
|---|
| | 46 | rm -f $(DESTDIR)$(libdir)/libdvdcss.a |
|---|
| | 47 | rm -f $(DESTDIR)$(libdir)/libdvdcss.so |
|---|
| | 48 | rm -f $(DESTDIR)$(libdir)/libdvdcss.so.$(LIBDVDCSS_MAJOR) |
|---|
| | 49 | rm -f $(DESTDIR)$(libdir)/libdvdcss.so.$(LIBDVDCSS_VERSION) |
|---|
| | 50 | |
|---|