From: Guido Draheim Date: Fri, 14 Sep 2018 15:56:24 +0000 (+0200) Subject: add base makefile targets X-Git-Tag: v0.13.72~111 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e6746c5769864ae205d55fdf2bdf4793ee6d2353;p=zziplib add base makefile targets --- diff --git a/Makefile b/Makefile index 2b2b60d..e061350 100644 --- 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