mirror of
https://github.com/RubyMetric/chsrc.git
synced 2025-01-22 21:02:59 +08:00
24 lines
364 B
Makefile
24 lines
364 B
Makefile
CFLAGS =
|
|
|
|
TARGET = chsrc
|
|
#=======================
|
|
|
|
all:
|
|
@echo Compile
|
|
@gcc chsrc.c $(CFLAGS) -o $(TARGET)
|
|
|
|
test:
|
|
@gcc test_helper.c -o test
|
|
@./test
|
|
|
|
test_cmd: $(TARGET)
|
|
./$(TARGET) list mirror
|
|
./$(TARGET) list target
|
|
./$(TARGET) get ruby
|
|
./$(TARGET) get python
|
|
|
|
clean:
|
|
-@rm *.exe 2>/dev/null
|
|
-@rm $(TARGET) 2>/dev/null
|
|
-@rm ./test 2>/dev/null
|