WengQiang's Blog

where there is a will, there is a way!

set makefile dependency

1
2
3
4
5
6
7
8
9
10
11
12
13
14
VPATH    = src include
CPPFLAGS = -I include
SOURCES = count_words.c \
lexer.c \
counter.c
count_words: counter.o lexer.o -lfl
count_words.o: counter.h
counter.o: counter.h lexer.h
lexer.o: lexer.h
include $(subst .c,.d,$(SOURCES))
%.d: %.c
$(CC) -M $(CPPFLAGS) $< > $@.$$$$; \
sed 's,\($*\)\.o[ :]*,\1.o $@ : ,g' < $@.$$$$ > $@; \
rm -f $@.$$$$
阅读全文 »

安装hexo

  1. 安装hexo 首先如果没有安装Node.jsGit, 则要先安装这两个 npm install -g hexo-cli

  2. hexo的更新 npm update -g (好像得重新按照1中的命令重新安装hexo)

创建本地博客

  1. 初始化博客 在你想建立博客的文件夹下执行hexo init

  2. 选择主题 选择自己喜欢的主题, 一般从github上clone到theme文件夹下; 然后根据主题的wiki进行配置

    阅读全文 »
0%