cleanup Makefile / update OUTPUT & README

This commit is contained in:
2021-07-16 23:24:07 +02:00
parent 33c5cde0a4
commit cd969b07ad
3 changed files with 25 additions and 9 deletions

View File

@@ -1,20 +1,14 @@
SUBDIRS := $(shell echo day??) SUBDIRS := $(shell echo day??)
INSTALLDIR := ~/dev/www/tk.bodiccea/advent-2020
DEST := arwen:www/tk.bodiccea/advent-2020
EXCLUDE := --exclude 'cob-01/' EXCLUDE := --exclude 'cob-01/'
.PHONY: clean deploy $(SUBDIRS) .PHONY: clean $(SUBDIRS)
clean: clean:
for dir in $(SUBDIRS) ; do \ for dir in $(SUBDIRS) ; do \
make -C $$dir clean ; \ make -C $$dir clean ; \
done done
deploy: clean
rsync -aHixv $(EXCLUDE) --delete --delete-excluded ./ $(INSTALLDIR)
rsync -aHixv $(EXCLUDE) ./ $(DEST) --delete --delete-excluded
all: $(SUBDIRS) all: $(SUBDIRS)
$(SUBDIRS): $(SUBDIRS):

22
OUTPUT
View File

@@ -395,7 +395,29 @@ ex1.bash : res=263
time: 0:00.40 real, 0.40 user, 0.00 sys time: 0:00.40 real, 0.40 user, 0.00 sys
context-switch: 41+1, page-faults: 0+315 context-switch: 41+1, page-faults: 0+315
ex1-c : res=263
time: 0:00.00 real, 0.00 user, 0.00 sys
context-switch: 0+1, page-faults: 0+150
+++++++++++++++++ ex2 +++++++++++++++++ ex2
ex2.bash : res=1680 ex2.bash : res=1680
time: 0:07.88 real, 7.87 user, 0.00 sys time: 0:07.88 real, 7.87 user, 0.00 sys
context-switch: 815+1, page-faults: 0+2637 context-switch: 815+1, page-faults: 0+2637
ex2-c : res=1680
time: 0:00.00 real, 0.00 user, 0.00 sys
context-switch: 0+1, page-faults: 0+1634
=========================================
================= day18 =================
=========================================
+++++++++++++++++ ex1
ex1.bash : res=650217205854
time: 0:01.76 real, 1.74 user, 0.01 sys
context-switch: 5+1, page-faults: 0+188
+++++++++++++++++ ex2
ex2.bash : res=20394514442037
time: 0:01.54 real, 1.53 user, 0.01 sys
context-switch: 42+1, page-faults: 0+196

4
README
View File

@@ -6,5 +6,5 @@ Status:
Done: Done:
Day 1: Bash, C, and Cobol Day 1: Bash, C, and Cobol
Days 2-16: Bash and C Days 2-17: Bash and C
Days 17-18: Bash Days 18: Bash