diff options
author | Yann Collet <cyan@fb.com> | 2017-08-14 23:56:05 (GMT) |
---|---|---|
committer | Yann Collet <cyan@fb.com> | 2017-08-14 23:56:05 (GMT) |
commit | 01cdbfb5feda4adee65cc3da04b426c0c22368a3 (patch) | |
tree | 72a1402855ce496d1b96ac455cd3f72500736fd4 /Makefile | |
parent | 731cff12080f1309af4abde122fe09ae0076f424 (diff) | |
download | lz4-01cdbfb5feda4adee65cc3da04b426c0c22368a3.zip lz4-01cdbfb5feda4adee65cc3da04b426c0c22368a3.tar.gz lz4-01cdbfb5feda4adee65cc3da04b426c0c22368a3.tar.bz2 |
lz4c legacy commands are now enabled at runtime based on link/binary name "lz4c"
instead of selected at compilation time depending on a macro.
This design makes it possible to have a single binary which supports both modes.
An advantageous side effect is that when doing `make; make install`
no additional binary is created during `make install`
(it used to create `lz4c`, because `make` would only build `lz4`)
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -62,7 +62,9 @@ lib lib-release: @$(MAKE) -C $(LZ4DIR) $@ .PHONY: lz4 lz4-release -lz4 lz4-release: lib +lz4 : lib +lz4-release : lib-release +lz4 lz4-release : @$(MAKE) -C $(PRGDIR) $@ @cp $(PRGDIR)/lz4$(EXT) . @@ -91,6 +93,7 @@ clean: ifneq (,$(filter $(shell uname),Linux Darwin GNU/kFreeBSD GNU OpenBSD FreeBSD NetBSD DragonFly SunOS)) HOST_OS = POSIX +.PHONY: install uninstall install uninstall: @$(MAKE) -C $(LZ4DIR) $@ @$(MAKE) -C $(PRGDIR) $@ |