Browse Source

Update 'README.md'

天问 6 months ago
parent
commit
e50ee56c1c
1 changed files with 22 additions and 0 deletions
  1. 22 0
      README.md

+ 22 - 0
README.md

@@ -8,6 +8,11 @@
 
 ## Usage
 
+通过yum源安装:
+```
+yum install htop
+```
+
 源码编译:
 ```
 git clone https://github.com/htop-dev/htop
@@ -15,3 +20,20 @@ git clone https://github.com/htop-dev/htop
 
 ```
 
+## 源码分析
+
+编译分析:
+
+注意关注 cofigure.ac 和 Makefile.am 两个文件,检测系统类型,编译依赖是否满足,
+拼凑编译参数。
+
+```
+dist-hook: $(top_distdir)/configure
+	@if grep 'pkg_m4_absent' '$(top_distdir)/configure'; then \
+	   echo 'configure is generated without pkg.m4. Please supply pkg.m4 and run ./autogen.sh to rebuild the configure script.'>&2; \
+	   (exit 1); \
+	else :; \
+	fi
+```
+
+