diff options
| author | zy <[email protected]> | 2023-09-12 07:55:44 +0000 |
|---|---|---|
| committer | zy <[email protected]> | 2023-09-12 07:55:44 +0000 |
| commit | 8216342cd730cf64c9e1b68295df32003cb8d9e8 (patch) | |
| tree | d31cf8118b90019dadf55dfda9fba85210d65b6f | |
| parent | 3ce83d7a4683d62b0b926197fb93bd664770d997 (diff) | |
timeout: 增加 install 选项, 安装到系统
| -rw-r--r-- | timeout/Makefile | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/timeout/Makefile b/timeout/Makefile index 2a0b473..b03cad0 100644 --- a/timeout/Makefile +++ b/timeout/Makefile @@ -58,9 +58,13 @@ timeout.o test-timeout.o: test-timeout: timeout.o test-timeout.o @$(SHRC); echo_cmd $(CC) $(ALL_CPPFLAGS) $(ALL_CFLAGS) -o $@ timeout.o test-timeout.o -timeout.so: timeout.c +so: timeout.c @$(SHRC); echo_cmd $(CC) $(ALL_CFLAGS) -shared -o $(top_srcdir)/timeout.so $(top_srcdir)/timeout.c - + +install: so + @$(SHRC); \ + echo_cmd cp $(top_srcdir)/timeout.so /usr/local/lib/libtimeout.so \ + && ldconfig .PHONY: clean clean~ |
