diff --git a/Makefile b/Makefile index bca9647..41781de 100644 --- a/Makefile +++ b/Makefile @@ -21,6 +21,11 @@ install: $(TARGET) install -d $(DESTDIR)$(MAPDIR) install -t $(DESTDIR)$(MAPDIR) $(MAPS) +install-darwin: $(TARGET) + install $(TARGET) $(DESTDIR)$(BINDIR)/$(TARGET) + install -d $(DESTDIR)$(MAPDIR) + install $(MAPS) $(DESTDIR)$(MAPDIR) + uninstall: $(RM) $(DESTDIR)$(BINDIR)/$(TARGET) $(RM) -r $(DESTDIR)$(MAPDIR) @@ -28,4 +33,4 @@ uninstall: clean: $(RM) $(wildcard src/*.o) $(TARGET) -.PHONY: install uninstall clean +.PHONY: install install-darwin uninstall clean diff --git a/README.md b/README.md index 5e27421..47d00b5 100644 --- a/README.md +++ b/README.md @@ -35,9 +35,15 @@ Download and build the game with: ``` 2. git clone https://github.com/jmoon018/PacVim.git 3. cd PacVim +``` +### Linux install +``` 4. [sudo] make install ``` - +### MacOS install +``` +4. [sudo] make install-darwin +``` ## Using Docker If you have docker installed already, you can just: