]> granicus.if.org Git - zziplib/commitdiff
add base makefile targets
authorGuido Draheim <guidod@gmx.de>
Fri, 14 Sep 2018 15:56:24 +0000 (17:56 +0200)
committerGuido Draheim <guidod@gmx.de>
Fri, 14 Sep 2018 15:56:24 +0000 (17:56 +0200)
Makefile

index 2b2b60df6916237143547bd846addf0733a61cc6..e061350a2eaae293c8e8314d7e5d9ed8d319509b 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -4,13 +4,27 @@ LOCAL ?= $(PWD)/build/root
 SHARED = -DBUILD_SHARED_LIBS=ON -DBUILD_STATIC_LIBS=OFF
 STATIC = -DBUILD_SHARED_LIBS=OFF -DBUILD_STATIC_LIBS=ON
 
-all: config build local
+all depend: 
+       test -d build || $(MAKE) config
+       cd $@
+clean edit_cache rebuild_cache help:
+       test ! -d build || cd build && $(MAKE) $@
+install install/strip install/local list_install_components:
+       cd build && $(MAKE) $@
+libzzip libzzipmmapped libzzipfseeko libzzipwrap zzipwrap:
+       cd build && $(MAKE) $@
+zzip unzzip unzzip-mix unzzip-mem unzzip-big zzdir zzcat zzcatsdl zzxorcat zzxordir zzobfuscated:
+       cd build && $(MAKE) $@
+
+builds: config build local
 static: conf build local
 
 st: ; $(MAKE) distclean && $(MAKE) static
-it: ; $(MAKE) distclean && $(MAKE) all
+it: ; $(MAKE) distclean && $(MAKE) builds
 
 .PHONY: build
+build:
+       cd build && $(MAKE) all
 
 config:
        test -d build || mkdir build
@@ -24,11 +38,6 @@ build:
        cd build && $(MAKE) VERBOSE=1
 local:
        cd build && $(MAKE) install DESTDIR=$(LOCAL)
-install:
-       cd build && $(MAKE) install
-
-clean:
-       cd build && $(MAKE) clean
 distclean:
        rm -rf build
        rm -rf CMakeFiles