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??)
INSTALLDIR := ~/dev/www/tk.bodiccea/advent-2020
DEST := arwen:www/tk.bodiccea/advent-2020
EXCLUDE := --exclude 'cob-01/'
.PHONY: clean deploy $(SUBDIRS)
.PHONY: clean $(SUBDIRS)
clean:
for dir in $(SUBDIRS) ; do \
make -C $$dir clean ; \
done
deploy: clean
rsync -aHixv $(EXCLUDE) --delete --delete-excluded ./ $(INSTALLDIR)
rsync -aHixv $(EXCLUDE) ./ $(DEST) --delete --delete-excluded
all: $(SUBDIRS)
$(SUBDIRS):