mirror of
https://github.com/RubyMetric/chsrc.git
synced 2024-11-22 14:11:15 +08:00
24 lines
355 B
Makefile
24 lines
355 B
Makefile
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
|