浏览代码

install target

Troy D. Hanson 10 年之前
父节点
当前提交
50c6874061
共有 1 个文件被更改,包括 4 次插入1 次删除
  1. 4 1
      libut/Makefile

+ 4 - 1
libut/Makefile

@@ -17,7 +17,7 @@ utvector.o: src/utvector.c $(INCDIR)/utvector.h
 utmm.o: src/utmm.c $(INCDIR)/utmm.h
 	$(CC) $(CFLAGS) -c $<
 
-.PHONY: clean tests
+.PHONY: clean tests install
 
 clean:
 	rm -f $(OBJS) *.o
@@ -25,3 +25,6 @@ clean:
 
 tests: libut.a
 	make -C tests 
+
+install: libut.a
+	cp $< /usr/local/lib