cleanup Makefile / update OUTPUT & README
This commit is contained in:
8
Makefile
8
Makefile
@@ -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):
|
||||
|
Reference in New Issue
Block a user