From 96476044387e98ee1ee7a6eb992b521bd447813c Mon Sep 17 00:00:00 2001 From: Roland Reichwein Date: Fri, 3 Mar 2023 16:55:33 +0100 Subject: Renamed whiteboard to webchat --- Makefile | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) (limited to 'Makefile') 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 -- cgit v1.2.3