diff options
author | Roland Reichwein <mail@reichwein.it> | 2020-04-30 16:35:44 +0200 |
---|---|---|
committer | Roland Reichwein <mail@reichwein.it> | 2020-04-30 16:35:44 +0200 |
commit | 092c3cc12a7092032c77ecfb75b7c6baec1da3cb (patch) | |
tree | 6477e6ad419e24abdb509147ce5eb091f9f3bc7c /plugins/webbox/Makefile | |
parent | 735d011a6cccf94eebe8bed1a6f539828a7b75e6 (diff) |
Debian packaging
Diffstat (limited to 'plugins/webbox/Makefile')
-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 --------------------------------------------------- |