diff options
| author | Mandragorat Wandystanu <wktir@wandystan.eu> | 2017-11-30 03:20:10 +0100 |
|---|---|---|
| committer | Mandragorat Wandystanu <wktir@wandystan.eu> | 2017-11-30 03:20:10 +0100 |
| commit | 414b0d852b83d9d400e082c155273f9801c1f7a5 (patch) | |
| tree | da9dc3389322c041fbb18b88fe6aa4d3ffa0fa6f | |
| parent | 4ba1297f75258dd8f2c165eead8bc5835ecb93c6 (diff) | |
Makefile: Remove traces of the moe submodule; always install PHP submodule.
| -rw-r--r-- | Makefile | 34 |
1 files changed, 1 insertions, 33 deletions
@@ -6,10 +6,8 @@ NPM="npm" DESTDIR="./dist" PKG_VERSION := $( $(GREP) -Po '(?<="version": ")[^"]*' ) TMPDIR := $(shell mktemp -d) -# default modules -MODULES="php" -all: builddirs npm_dependencies swig htmlmin min-css min-js submodules +all: builddirs npm_dependencies swig htmlmin min-css min-js copy-php swig: $(NODE) node_modules/swig/bin/swig.js render -j dist.json templates/upload_logged.swig > $(CURDIR)/build/upload_logged.html @@ -22,12 +20,7 @@ htmlmin: $(NODE) node_modules/htmlmin/bin/htmlmin $(CURDIR)/build/404.html -o $(CURDIR)/build/404.html installdirs: -ifneq (,$(findstring php,$(MODULES))) mkdir -p $(DESTDIR)/classes $(DESTDIR)/includes -endif -ifneq (,$(findstring moe,$(MODULES))) - mkdir -p $(DESTDIR)/moe/{css,fonts,includes,js,login,panel/css/font,panel/css/images,register,templates} -endif min-css: $(NODE) $(CURDIR)/node_modules/.bin/cleancss --s0 $(CURDIR)/static/css/pomf.css > $(CURDIR)/build/pomf.min.css @@ -39,18 +32,7 @@ min-js: echo "// @license-end" >> $(CURDIR)/build/pomf.min.js copy-php: -ifneq ($(wildcard $(CURDIR)/static/php/.),) cp -rv $(CURDIR)/static/php/* $(CURDIR)/build/ -else - $(error The php submodule was not found) -endif - -copy-moe: -ifneq ($(wildcard $(CURDIR)/moe/.),) - cp -rv $(CURDIR)/moe $(CURDIR)/build/ -else - $(error The moe submodule was not found) -endif install: installdirs cp -rv $(CURDIR)/build/* $(DESTDIR)/ @@ -73,18 +55,4 @@ npm_dependencies: $(NPM) install builddirs: -ifneq (,$(findstring php,$(MODULES))) mkdir -p $(CURDIR)/build/classes $(CURDIR)/build/includes -endif -ifneq (,$(findstring moe,$(MODULES))) - mkdir -p $(CURDIR)/build/moe/{css,fonts,includes,js,login,panel/css/font,panel/css/images,register,templates} -endif - -submodules: - $(info The following modules will be enabled: $(MODULES)) -ifneq (,$(findstring php,$(MODULES))) - $(MAKE) copy-php -endif -ifneq (,$(findstring moe,$(MODULES))) - $(MAKE) copy-moe -endif |
