mirror of
https://github.com/lz4/lz4.git
synced 2024-11-27 03:48:08 +08:00
ensure make install target doesn't create files
if preceded by a standard make command
This commit is contained in:
parent
640865da9b
commit
4e8788eddc
22
lib/Makefile
22
lib/Makefile
@ -85,13 +85,13 @@ default: lib-release
|
||||
$(V)$(VERBOSE).SILENT:
|
||||
|
||||
lib-release: DEBUGFLAGS :=
|
||||
lib-release: lib
|
||||
lib-release: lib liblz4.pc
|
||||
|
||||
.PHONY: lib
|
||||
lib: liblz4.a liblz4
|
||||
|
||||
.PHONY: all
|
||||
all: lib
|
||||
all: lib liblz4.pc
|
||||
|
||||
.PHONY: all32
|
||||
all32: CFLAGS+=-m32
|
||||
@ -138,6 +138,15 @@ endif
|
||||
.PHONY: liblz4
|
||||
liblz4: $(LIBLZ4)
|
||||
|
||||
liblz4.pc: liblz4.pc.in Makefile
|
||||
@echo creating pkgconfig
|
||||
$(SED) -e 's|@PREFIX@|$(prefix)|' \
|
||||
-e 's|@LIBDIR@|$(libdir)|' \
|
||||
-e 's|@INCLUDEDIR@|$(includedir)|' \
|
||||
-e 's|@VERSION@|$(LIBVER)|' \
|
||||
-e 's|=${prefix}/|=$${prefix}/|' \
|
||||
$< >$@
|
||||
|
||||
.PHONY: clean
|
||||
clean:
|
||||
ifeq ($(WINBASED),yes)
|
||||
@ -178,15 +187,6 @@ PKGCONFIGDIR ?= $(libdir)/pkgconfig
|
||||
endif
|
||||
pkgconfigdir ?= $(PKGCONFIGDIR)
|
||||
|
||||
liblz4.pc: liblz4.pc.in Makefile
|
||||
@echo creating pkgconfig
|
||||
$(SED) -e 's|@PREFIX@|$(prefix)|' \
|
||||
-e 's|@LIBDIR@|$(libdir)|' \
|
||||
-e 's|@INCLUDEDIR@|$(includedir)|' \
|
||||
-e 's|@VERSION@|$(LIBVER)|' \
|
||||
-e 's|=${prefix}/|=$${prefix}/|' \
|
||||
$< >$@
|
||||
|
||||
install: lib liblz4.pc
|
||||
$(INSTALL_DIR) $(DESTDIR)$(pkgconfigdir)/ $(DESTDIR)$(includedir)/ $(DESTDIR)$(libdir)/ $(DESTDIR)$(bindir)/
|
||||
$(INSTALL_DATA) liblz4.pc $(DESTDIR)$(pkgconfigdir)/
|
||||
|
Loading…
Reference in New Issue
Block a user