Add makefile

This commit is contained in:
Tyler Perkins 2022-11-25 22:44:41 -05:00
parent 57a219cac9
commit a5c0262729

17
Makefile Normal file
View File

@ -0,0 +1,17 @@
###############################################################################
# Tyler Perkins
# 20-5-21
# Makefile/installer
#
INSTALL_PATH = /var/www/html/
POST_PATH = ./src/posts/
install :
@echo "Installing to $(INSTALL_PATH)"
@echo "Syncing contents using rsync..."
rsync -auv src/* $(INSTALL_PATH) --delete
new_post :
@echo "Making new post! You'll have to install after you're done making it"
cp template.php $(POST_PATH)/newpost.php