]> git.sesse.net Git - vlc/commitdiff
Improve the peflags target
authorChristophe Mutricy <xtophe@videolan.org>
Sun, 25 Oct 2009 21:07:42 +0000 (21:07 +0000)
committerChristophe Mutricy <xtophe@videolan.org>
Sun, 25 Oct 2009 21:50:23 +0000 (21:50 +0000)
extras/contrib/src/Makefile

index 355159c5d8c60fa527b586f64dee9ff15d44464a..b136feb2ad3f2590a4d52fb8f227491174e06566 100644 (file)
@@ -2581,12 +2581,11 @@ xcb-util: xcb-util-$(XCB_UTIL_VERSION).tar.bz2
 # Peflags utility (Windows only)
 # ***************************************************************************
 
-peflags.c:
-       $(WGET) $(PEFLAGS_URL)/$@
+peflags/peflags.c:
+       mkdir -p peflags
+       cd peflags && $(WGET) $(PEFLAGS_URL)/peflags.c
 
-.peflags: peflags.c
-       rm -rf peflags
-       mkdir peflags && mv peflags.c peflags/
+.peflags: peflags/peflags.c
        cd peflags && gcc peflags.c -o peflags
        install -d $(PREFIX)/bin
        cd peflags && install ./peflags $(PREFIX)/bin