summaryrefslogtreecommitdiffhomepage
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rwxr-xr-xMakefile10
1 files changed, 5 insertions, 5 deletions
diff --git a/Makefile b/Makefile
index 6dba940..cb5ef3e 100755
--- a/Makefile
+++ b/Makefile
@@ -16,7 +16,7 @@ INCLUDES=-I.
HEADERS=config.h qrcode.h storage.h whiteboard.h compiledsql.h
SOURCES=$(HEADERS:.h=.cpp)
OBJECTS=$(HEADERS:.h=.o)
-TARGETS=whiteboard.fcgi
+TARGETS=whiteboard
build: $(TARGETS)
@@ -24,8 +24,8 @@ all: build
./start.sh
install:
- mkdir -p $(DESTDIR)/usr/lib/whiteboard
- cp whiteboard.fcgi $(DESTDIR)/usr/lib/whiteboard/
+ mkdir -p $(DESTDIR)/usr/bin
+ cp whiteboard $(DESTDIR)/usr/bin
mkdir -p $(DESTDIR)/usr/lib/whiteboard/html
cp -r html/* $(DESTDIR)/usr/lib/whiteboard/html/
@@ -38,7 +38,7 @@ install:
cp whiteboard.conf $(DESTDIR)/etc
# link
-whiteboard.fcgi: $(OBJECTS) main.o
+whiteboard: $(OBJECTS) main.o
$(CXX) $(LDFLAGS) $^ $(LDLIBS) $(LIBS) -o $@
# .cpp -> .o
@@ -49,7 +49,7 @@ test:
$(MAKE) -C tests
clean:
- -rm -f *.o *.fcgi *.gcov
+ -rm -f *.o $(TARGETS) *.gcov
$(MAKE) -C tests clean
deb: