aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJesse Laprade <jesselaprade@gmail.com>2021-04-17 11:28:25 -0400
committerJesse Laprade <jesselaprade@gmail.com>2021-04-17 11:28:25 -0400
commit6ee316fa234e76507db6cb696367c2fe72bd8bf7 (patch)
tree9968cb37127782283bb0f233c88543f316096ae2
parentbe71ea4f64b57d2dfcf1b603895c0fefbea2eec5 (diff)
downloadsprout-6ee316fa234e76507db6cb696367c2fe72bd8bf7.tar.gz
sprout-6ee316fa234e76507db6cb696367c2fe72bd8bf7.tar.bz2
sprout-6ee316fa234e76507db6cb696367c2fe72bd8bf7.zip
Separated raco pkg install in makefile
If the pkg command is inside of the build function, and a package is already installed, then make will stop the build process. See the readme for new instructions!
-rw-r--r--Makefile4
-rw-r--r--README.md18
2 files changed, 13 insertions, 9 deletions
diff --git a/Makefile b/Makefile
index 062b588..c506556 100644
--- a/Makefile
+++ b/Makefile
@@ -15,9 +15,11 @@ uninstall: $(DESTDIR)/$(PROGRAM)
rm $(DESTDIR)/$(PROGRAM)
build: $(PROGRAM).rkt
- raco pkg install yaml
raco exe -o ./$(PROGRAM) $(PROGRAM).rkt
+deps:
+ raco pkg install yaml
+
.PHONY: clean
clean:
rm ./$(PROGRAM)
diff --git a/README.md b/README.md
index 959f58b..4664401 100644
--- a/README.md
+++ b/README.md
@@ -75,10 +75,11 @@ follow the steps below to install sprout on your local machine:
1. run `git clone https://git.m455.casa/m455/sprout`
2. run `cd sprout`
-3. run `make install` as root
-4. run `sprout`
-5. type `y` when prompted
-6. type `s` to change your settings
+3. run `make deps`
+4. run `make install` as root
+5. run `sprout`
+6. type `y` when prompted
+7. type `s` to change your settings
### prepare your server
@@ -109,10 +110,11 @@ follow the steps below on tilde.town:
1. run `mkdir ~/public_html/weed`
2. run `git clone https://git.m455.casa/m455/sprout`
3. run `cd sprout`
-4. run `make install DESTDIR=~/.local/bin
-5. run `sprout`
-6. type `y` when prompted
-7. type `s` to change your settings
+4. run `make deps`
+5. run `make install DESTDIR=~/.local/bin
+6. run `sprout`
+7. type `y` when prompted
+8. type `s` to change your settings
## todos