Add makefile
This commit is contained in:
parent
57a219cac9
commit
a5c0262729
17
Makefile
Normal file
17
Makefile
Normal 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
|
Reference in New Issue
Block a user