mirror of
https://github.com/RubyMetric/chsrc.git
synced 2024-11-23 17:08:47 +08:00
32 lines
648 B
Makefile
32 lines
648 B
Makefile
# ---------------------------------------------------------------
|
|
# File : Makefile
|
|
# License : GPLv3
|
|
# Authors : Aoran Zeng <ccmywish@qq.com>
|
|
# Created on : <2023-08-28>
|
|
# Last modified : <2023-09-05>
|
|
# ---------------------------------------------------------------
|
|
|
|
CFLAGS =
|
|
|
|
TARGET = chsrc
|
|
#=======================
|
|
|
|
all:
|
|
@echo Compile
|
|
@gcc chsrc.c $(CFLAGS) -o $(TARGET)
|
|
|
|
test: $(TARGET)
|
|
./$(TARGET) list mirror
|
|
./$(TARGET) list target
|
|
./$(TARGET) get ruby
|
|
./$(TARGET) get python
|
|
|
|
test_xy:
|
|
@gcc test_xy.c -o xy
|
|
@./xy
|
|
|
|
clean:
|
|
-@rm *.exe 2>/dev/null
|
|
-@rm $(TARGET) 2>/dev/null
|
|
-@rm ./xy 2>/dev/null
|