17 lines
291 B
Makefile
17 lines
291 B
Makefile
.PHONY: default commit clean
|
|
|
|
default: commit
|
|
|
|
commit: hosts
|
|
@echo "Committing changes to the repository..."
|
|
@git add hosts hosts.txt list.txt
|
|
@git commit -m "Update hosts file"
|
|
@git push origin main
|
|
|
|
hosts: list.txt
|
|
./generate.sh > $@
|
|
cp $@ hosts.txt
|
|
|
|
clean:
|
|
@rm -rf hosts hosts.txt
|