summaryrefslogtreecommitdiffhomepage
path: root/Makefile
diff options
context:
space:
mode:
authorRoland Reichwein <mail@reichwein.it>2022-11-26 12:59:28 +0100
committerRoland Reichwein <mail@reichwein.it>2022-11-26 12:59:28 +0100
commit7619dc0bef58d00c816b6628e457a85845b9edee (patch)
treef572b4dd639e0b4b4c0215e1cb1facb299ca0523 /Makefile
parentf116c9146e53d885840ed957204d60d81fd858bd (diff)
Cleanup via cron/systemd
Diffstat (limited to 'Makefile')
-rwxr-xr-xMakefile14
1 files changed, 11 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index 640a081..a387f1c 100755
--- a/Makefile
+++ b/Makefile
@@ -67,14 +67,22 @@ all: build
install:
mkdir -p $(DESTDIR)/usr/lib/whiteboard
cp whiteboard.fcgi $(DESTDIR)/usr/lib/whiteboard/
-
+
mkdir -p $(DESTDIR)/usr/lib/whiteboard/html
cp -r html/* $(DESTDIR)/usr/lib/whiteboard/html/
-
+
uglifyjs html/whiteboard.js -m -c > $(DESTDIR)/usr/lib/whiteboard/html/whiteboard.js
htmlmin html/index.html $(DESTDIR)/usr/lib/whiteboard/html/index.html
cleancss -o $(DESTDIR)/usr/lib/whiteboard/html/whiteboard.css html/whiteboard.css
-
+
+ mkdir -p $(DESTDIR)/etc
+ cp whiteboard.conf $(DESTDIR)/etc
+
+ mkdir -p $(DESTDIR)/usr/bin
+ cp whiteboard-cleanup $(DESTDIR)/usr/bin/
+
+ mkdir -p $(DESTDIR)/etc/cron.d
+ cp whiteboard.cron $(DESTDIR)/etc/cron.d/whiteboard
whiteboard.fcgi: $(OBJECTS)