summaryrefslogtreecommitdiffhomepage
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rwxr-xr-xMakefile26
1 files changed, 13 insertions, 13 deletions
diff --git a/Makefile b/Makefile
index aafa42a..24355b7 100755
--- a/Makefile
+++ b/Makefile
@@ -6,39 +6,39 @@
include common.mk
-PROJECTNAME=whiteboard
+PROJECTNAME=webchat
DISTROS=base debian11 ubuntu2210
TGZNAME=$(PROJECTNAME)-$(VERSION).tar.xz
INCLUDES=-I.
-HEADERS=config.h qrcode.h storage.h whiteboard.h compiledsql.h connectionregistry.h diff.h
+HEADERS=config.h storage.h webchat.h compiledsql.h connectionregistry.h
SOURCES=$(HEADERS:.h=.cpp)
OBJECTS=$(HEADERS:.h=.o)
-TARGETS=whiteboard
+TARGETS=webchat
build: $(TARGETS)
$(MAKE) -C webassembly
all: build
- ./whiteboard -c whiteboard.conf
+ ./webchat -c webchat.conf
install:
mkdir -p $(DESTDIR)/usr/bin
- cp whiteboard $(DESTDIR)/usr/bin
+ cp webchat $(DESTDIR)/usr/bin
- mkdir -p $(DESTDIR)/usr/lib/whiteboard/html
- cp -r html/* $(DESTDIR)/usr/lib/whiteboard/html/
+ mkdir -p $(DESTDIR)/usr/lib/webchat/html
+ cp -r html/* $(DESTDIR)/usr/lib/webchat/html/
- uglifyjs html/whiteboard.js -m -c > $(DESTDIR)/usr/lib/whiteboard/html/whiteboard.js || cp html/whiteboard.js $(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
+ uglifyjs html/webchat.js -m -c > $(DESTDIR)/usr/lib/webchat/html/webchat.js || cp html/webchat.js $(DESTDIR)/usr/lib/webchat/html/webchat.js
+ htmlmin html/index.html $(DESTDIR)/usr/lib/webchat/html/index.html
+ cleancss -o $(DESTDIR)/usr/lib/webchat/html/webchat.css html/webchat.css
mkdir -p $(DESTDIR)/etc
- cp whiteboard.conf $(DESTDIR)/etc
+ cp webchat.conf $(DESTDIR)/etc
# link
-whiteboard: $(OBJECTS) main.o
+webchat: $(OBJECTS) main.o
$(CXX) $(LDFLAGS) $^ $(LDLIBS) $(LIBS) -o $@
# .cpp -> .o
@@ -50,7 +50,7 @@ test:
clean:
-rm -f *.o $(TARGETS) *.gcov
- -rm -f html/libwhiteboard.wasm html/libwhiteboard.js
+ -rm -f html/libwebchat.wasm html/libwebchat.js
$(MAKE) -C tests clean
$(MAKE) -C webassembly clean