Changeset a58afe8e62c672b06e047f2475e69977908dbb7d
- Timestamp:
- 12/09/07 22:36:32
(9 months ago)
- Author:
- Rémi Denis-Courmont <rem@videolan.org>
- git-committer:
- Rémi Denis-Courmont <rem@videolan.org> 1197236192 +0000
- git-parent:
[b0152eca135b22c048753d7a29a285df71b7c051]
- git-author:
- Rémi Denis-Courmont <rem@videolan.org> 1197236192 +0000
- Message:
Build VLC aliases cleanly (don't need to parse argv[0])
-
Files:
-
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
| ref80592 |
ra58afe8 |
|
| 237 | 237 | DISTCLEANFILES = $(BUILT_SOURCES_distclean) vlc-config.in compile |
|---|
| 238 | 238 | |
|---|
| | 239 | # Shortcut for developpers to rebuild the core (libvlc + vlc) |
|---|
| | 240 | # Don't use it if you don't know what it is about. |
|---|
| | 241 | # Don't complain if it doesn't work. -- Courmisch |
|---|
| | 242 | libvlc: |
|---|
| | 243 | cd src && $(MAKE) $(AM_MAKEFLAGS) $(LIB_libvlc) |
|---|
| | 244 | |
|---|
| | 245 | .PHONY: libvlc |
|---|
| | 246 | |
|---|
| 239 | 247 | ############################################################################### |
|---|
| 240 | 248 | # Building vlc |
|---|
| … | … | |
| 263 | 271 | $(top_builddir)/compile |
|---|
| 264 | 272 | |
|---|
| 265 | | # Shortcut for developpers to rebuild the core (libvlc + vlc) |
|---|
| 266 | | # Don't use it if you don't know what it is about. |
|---|
| 267 | | # Don't complain if it doesn't work. -- Courmisch |
|---|
| 268 | | libvlc: |
|---|
| 269 | | cd src && $(MAKE) $(AM_MAKEFLAGS) $(LIB_libvlc) |
|---|
| 270 | | |
|---|
| 271 | 273 | core: libvlc vlc$(EXEEXT) |
|---|
| 272 | 274 | |
|---|
| 273 | | .PHONY: libvlc core |
|---|
| | 275 | .PHONY: core |
|---|
| 274 | 276 | |
|---|
| 275 | 277 | vlc$(EXEEXT): $(vlc_OBJECTS) $(vlc_DEPENDENCIES) |
|---|
| … | … | |
| 310 | 312 | endif |
|---|
| 311 | 313 | |
|---|
| 312 | | # Install the symlinks |
|---|
| 313 | | install-exec-local: install-binPROGRAMS |
|---|
| 314 | | inst="`echo vlc | sed -e '$(transform)'`" ; \ |
|---|
| 315 | | for i in "" $(ALIASES) ; do if test -n "$$i" ; then \ |
|---|
| 316 | | rm -f "$(DESTDIR)$(bindir)/$$i" && \ |
|---|
| 317 | | ln -sf "$${inst}" "$(DESTDIR)$(bindir)/$$i" ; \ |
|---|
| 318 | | fi ; done |
|---|
| 319 | | |
|---|
| 320 | | # the opposite of install-{data,exec}-local |
|---|
| 321 | | uninstall-local: |
|---|
| 322 | | for i in "" $(ALIASES) ; do if test -n "$$i" ; then \ |
|---|
| 323 | | rm -f "$(DESTDIR)$(bindir)/$$i" ; \ |
|---|
| 324 | | fi ; done |
|---|
| | 314 | ############################################################################### |
|---|
| | 315 | # Building aliases |
|---|
| | 316 | ############################################################################### |
|---|
| | 317 | |
|---|
| | 318 | ALL_ALIASES = cvlc rvlc svlc wxvlc qvlc nvlc |
|---|
| | 319 | bin_SCRIPTS += $(ALIASES) |
|---|
| | 320 | EXTRA_SCRIPTS = $(ALL_ALIASES) |
|---|
| | 321 | |
|---|
| | 322 | dist_noinst_SCRIPTS += make-alias |
|---|
| | 323 | |
|---|
| | 324 | MKALIAS = bindir="$(bindir)" transform="$(transform)" $(top_srcdir)/make-alias $@ |
|---|
| | 325 | |
|---|
| | 326 | cvlc: make-alias |
|---|
| | 327 | $(MKALIAS) dummy |
|---|
| | 328 | |
|---|
| | 329 | rvlc: make-alias |
|---|
| | 330 | $(MKALIAS) rc |
|---|
| | 331 | |
|---|
| | 332 | svlc: make-alias |
|---|
| | 333 | $(MKALIAS) skins2 |
|---|
| | 334 | |
|---|
| | 335 | wxvlc: make-alias |
|---|
| | 336 | $(MKALIAS) wx |
|---|
| | 337 | |
|---|
| | 338 | qvlc: make-alias |
|---|
| | 339 | $(MKALIAS) qt4 |
|---|
| | 340 | |
|---|
| | 341 | nvlc: make-alias |
|---|
| | 342 | $(MKALIAS) ncurses |
|---|
| 325 | 343 | |
|---|
| 326 | 344 | if HAVE_DARWIN |
|---|