Add/update makefiles

Signed-off-by: Alek Ratzloff <alekr@jsausa.com>
This commit is contained in:
Alek Ratzloff
2019-12-04 16:22:20 -05:00
parent f3c80f2fd2
commit 629afd166d
4 changed files with 42 additions and 2 deletions

11
day01/Makefile Normal file
View File

@@ -0,0 +1,11 @@
TARGET=Day01
.PHONY: all
all: $(TARGET)
$(TARGET): Day01.rs
rustc $<
.PHONY: clean
clean:
rm $(TARGET) -f

15
day02/Makefile Normal file
View File

@@ -0,0 +1,15 @@
TARGET=Day02
.PHONY: all
all: $(TARGET)
.PHONY: run
run: $(TARGET)
./$(TARGET)
$(TARGET): Day02.rs
rustc $<
.PHONY: clean
clean:
rm $(TARGET) -f

View File

@@ -6,8 +6,8 @@ all: $(TARGET)
run: $(TARGET) run: $(TARGET)
./$(TARGET) ./$(TARGET)
$(TARGET): $(TARGET).hs $(TARGET): $(TARGET).rs
ghc -W $< rustc $< -g -O
.PHONY: clean .PHONY: clean
clean: clean:

14
day04/Makefile Normal file
View File

@@ -0,0 +1,14 @@
TARGET=Day04
all: $(TARGET)
.PHONY: run
run: $(TARGET)
./$(TARGET)
$(TARGET): $(TARGET).rs
rustc $< -g
.PHONY: clean
clean:
rm $(TARGET)