diff options
Diffstat (limited to 'plugins/webbox')
| -rw-r--r-- | plugins/webbox/Makefile | 14 | 
1 files changed, 6 insertions, 8 deletions
diff --git a/plugins/webbox/Makefile b/plugins/webbox/Makefile index 54c954c..5ff22f7 100644 --- a/plugins/webbox/Makefile +++ b/plugins/webbox/Makefile @@ -97,14 +97,12 @@ install:  	mkdir -p $(DESTDIR)/usr/lib/webserver/plugins  	cp $(PROJECTNAME).so $(DESTDIR)/usr/lib/webserver/plugins -	mkdir -p $(DESTDIR)/var/www/webbox -	cp -r html/* $(DESTDIR)/var/www/webbox/ - -	# Minify, conditionally -	command -v uglifyjs && uglifyjs html/webbox.js -m -c > $(DESTDIR)/var/www/webbox/webbox.js || true -	command -v htmlmin && \ -		htmlmin html/index.html $(DESTDIR)/var/www/webbox/index.html || true -	command -v cleancss && cleancss -o $(DESTDIR)/var/www/webbox/webbox.css html/webbox.css || true +	mkdir -p $(DESTDIR)/usr/lib/webbox/html +	cp -r html/* $(DESTDIR)/usr/lib/webbox/html/ + +	uglifyjs html/webbox.js -m -c > $(DESTDIR)/usr/lib/webbox/html/webbox.js +	htmlmin html/index.html $(DESTDIR)/usr/lib/webbox/html/index.html +	cleancss -o $(DESTDIR)/usr/lib/webbox/html/webbox.css html/webbox.css  # misc ---------------------------------------------------  | 
