瀏覽代碼

Better make depend

Andy Baugh 4 年之前
父節點
當前提交
513c62b0ea
共有 2 個文件被更改,包括 3 次插入5 次删除
  1. 2 2
      Makefile
  2. 1 3
      Readme.md

+ 2 - 2
Makefile

@@ -1,8 +1,8 @@
 SHELL := /bin/bash
 
-# TODO detect other popular distros/have a fallback
 .PHONY: depend
-depend: prereq-debian
+depend:
+	[ -f "/etc/debian_version" ] make prereq-debian || make prereq-perl prereq-frontend
 
 .PHONY: install
 install:

+ 1 - 3
Readme.md

@@ -3,15 +3,13 @@ tCMS
 
 A flexible perl CMS which supports multiple data models and content types
 
-On debian, deployment is currently:
+Deployment is currently:
 * make depend
 * make install
 * Set up proxy rule in your webserver
 * open tmux or screen
 * `starman -p $PORT www/server.psgi`
 
-...On non-debian unixy environments, take a look at the Makefile and run the prereq steps that look right for you.
-
 TODO: Make the makefile not rewrite itself when running make! Reset for now after run.
 
 A Dockerfile and deployment scripts are provided for your convenience in building/running containers based on this: