Commit 9090f58c authored by Sam Hocevar's avatar Sam Hocevar

* Makefile.am:

    + If a builtin has been rebuilt, rebuild vlc.
    + Do not rebuild the Mozilla plugin's xpt when the Makefile changes.
parent ec5beee7
...@@ -348,8 +348,8 @@ vlc_CFLAGS = `$(VLC_CONFIG) --cflags vlc` ...@@ -348,8 +348,8 @@ vlc_CFLAGS = `$(VLC_CONFIG) --cflags vlc`
# old automake-1.5 bug (automake/279). # old automake-1.5 bug (automake/279).
DEPENDENCIES_vlc = lib/libvlc.a $(DATA_win32_rc) $(LIB_intl) DEPENDENCIES_vlc = lib/libvlc.a $(DATA_win32_rc) $(LIB_intl)
vlc$(EXEEXT): $(vlc_OBJECTS) $(DEPENDENCIES_vlc) vlc$(EXEEXT): $(vlc_OBJECTS) $(DEPENDENCIES_vlc) stamp-builtin
@rm -f $(srcdir)/vlc$(EXEEXT) @rm -f $(top_builddir)/vlc$(EXEEXT)
case `$(VLC_CONFIG) --linkage vlc builtin` in \ case `$(VLC_CONFIG) --linkage vlc builtin` in \
c++) $(CXXLINK) $(vlc_OBJECTS) $(vlc_LDADD) $(vlc_LDFLAGS) $(LIBS) ;; \ c++) $(CXXLINK) $(vlc_OBJECTS) $(vlc_LDADD) $(vlc_LDFLAGS) $(LIBS) ;; \
objc) $(OBJCLINK) $(vlc_OBJECTS) $(vlc_LDADD) $(vlc_LDFLAGS) $(LIBS) ;; \ objc) $(OBJCLINK) $(vlc_OBJECTS) $(vlc_LDADD) $(vlc_LDFLAGS) $(LIBS) ;; \
...@@ -436,7 +436,7 @@ package-win32: ...@@ -436,7 +436,7 @@ package-win32:
# Create installation script # Create installation script
cp "$(srcdir)/install-win32" "$(srcdir)/tmp/nsi" cp "$(srcdir)/install-win32" "$(srcdir)/tmp/nsi"
# Copy relevant files # Copy relevant files
cp "$(srcdir)/vlc$(EXEEXT)" "$(srcdir)/tmp/" cp "$(top_builddir)/vlc$(EXEEXT)" "$(srcdir)/tmp/"
$(STRIP) "$(srcdir)/tmp/vlc$(EXEEXT)" $(STRIP) "$(srcdir)/tmp/vlc$(EXEEXT)"
cp "$(srcdir)/INSTALL.win32" "$(srcdir)/tmp/INSTALL.txt" cp "$(srcdir)/INSTALL.win32" "$(srcdir)/tmp/INSTALL.txt"
unix2dos "$(srcdir)/tmp/INSTALL.txt" unix2dos "$(srcdir)/tmp/INSTALL.txt"
...@@ -598,18 +598,18 @@ $(SOURCES_mozilla): mozilla/vlcintf.h ...@@ -598,18 +598,18 @@ $(SOURCES_mozilla): mozilla/vlcintf.h
mozilla_plugin_DATA = $(LIBRARIES_mozilla) mozilla_plugin_DATA = $(LIBRARIES_mozilla)
mozilla_plugindir = $(libdir)/mozilla/plugins mozilla_plugindir = $(libdir)/mozilla/plugins
$(LIBRARIES_mozilla): $(mozilla_libplugin_a_OBJECTS) \ $(LIBRARIES_mozilla): $(mozilla_libplugin_a_OBJECTS) \
$(mozilla_libplugin_a_DEPENDENCIES) $(mozilla_libplugin_a_DEPENDENCIES) stamp-pic
$(CXXLINK) $(mozilla_libplugin_a_OBJECTS) $(DATA_npvlc_rc) \ $(CXXLINK) $(mozilla_libplugin_a_OBJECTS) $(DATA_npvlc_rc) \
lib/libvlc_pic.a -shared \ lib/libvlc_pic.a -shared \
`$(VLC_CONFIG) --libs vlc mozilla builtin pic` `$(VLC_CONFIG) --libs vlc mozilla builtin pic`
mozilla_vlcintf_xpt_DATA = mozilla/vlcintf.xpt mozilla_vlcintf_xpt_DATA = mozilla/vlcintf.xpt
mozilla_vlcintf_xptdir = $(libdir)/mozilla/components mozilla_vlcintf_xptdir = $(libdir)/mozilla/components
mozilla/vlcintf.xpt: Makefile mozilla/vlcintf.idl mozilla/vlcintf.xpt: mozilla/vlcintf.idl
$(XPIDL) -I/usr/share/idl/mozilla -m typelib \ $(XPIDL) -I/usr/share/idl/mozilla -m typelib \
-o mozilla/vlcintf $(srcdir)/mozilla/vlcintf.idl -o mozilla/vlcintf $(srcdir)/mozilla/vlcintf.idl
mozilla/vlcintf.h: Makefile mozilla/vlcintf.idl mozilla/vlcintf.h: mozilla/vlcintf.idl
$(XPIDL) -I/usr/share/idl/mozilla -m header \ $(XPIDL) -I/usr/share/idl/mozilla -m header \
-o mozilla/vlcintf $(srcdir)/mozilla/vlcintf.idl -o mozilla/vlcintf $(srcdir)/mozilla/vlcintf.idl
...@@ -622,6 +622,31 @@ mozilla/npvlc_rc.$(OBJEXT): mozilla/npvlc_rc.rc ...@@ -622,6 +622,31 @@ mozilla/npvlc_rc.$(OBJEXT): mozilla/npvlc_rc.rc
endif endif
endif endif
###############################################################################
# Stamp rules
###############################################################################
clean: clean-stamps
clean-stamp:
rm -f stamp-builtin stamp-pic
stamp-builtin: FORCE
@for dep in "" `$(VLC_CONFIG) --target builtin`; do \
if test "$${dep}" -nt "$(top_builddir)/vlc$(EXEEXT)"; then \
rm -f $@; \
break; \
fi; \
done
@if test ! -f $@; then printf "" > $@; fi
stamp-pic: FORCE
@for dep in "" `$(VLC_CONFIG) --target builtin pic`; do \
if test "$${dep}" -nt "$(LIBRARIES_mozilla)"; then \
rm -f $@; \
break; \
fi; \
done
@if test ! -f $@; then printf "" > $@; fi
############################################################################### ###############################################################################
# Force rule # Force rule
############################################################################### ###############################################################################
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment