From bdc7b196ef217146388e994689fb931c1956af0b Mon Sep 17 00:00:00 2001 From: Clortox Date: Mon, 8 Mar 2021 22:13:24 -0500 Subject: [PATCH] Add update_dir to makefile --- Makefile | 3 +++ README.md | 7 ++++++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 13ff33c..23a1537 100644 --- a/Makefile +++ b/Makefile @@ -8,6 +8,9 @@ INSTALL_PATH = /var/www/html/ update_config : var/config.php cp var/config.php $(INSTALL_PATH)/var/config.php +update_dir : + cp -r dir $(INSTALL_PATH) + install: var/config.php @echo "Installing to $(INSTALL_PATH)" @echo "Everything there will be deleted" diff --git a/README.md b/README.md index dfba989..d6fc13f 100644 --- a/README.md +++ b/README.md @@ -29,8 +29,13 @@ After you are done setting up your configuration file, run: make install ``` -This will install the website and should now be accessible. If at any time you wish to update the config file, edit the config file in this folder, then run +This will install the website and should now be accessible. If at any time you wish to update the config file, edit the config file in this folder, then run: ```bash make update_config ``` + +If you would like to update the dir folder with new symlinks that you have added, you can do so automatically by running: +```bash +make update_dir +```