summaryrefslogtreecommitdiffhomepage
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rwxr-xr-xMakefile12
1 files changed, 11 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index c3a4d5f..657afe5 100755
--- a/Makefile
+++ b/Makefile
@@ -24,12 +24,22 @@ all: build
./start.sh
install:
+ mkdir -p $(DESTDIR)/usr/lib/downtube
+ cp downtube.fcgi $(DESTDIR)/usr/lib/downtube/
+
+ mkdir -p $(DESTDIR)/usr/lib/downtube/html
+ cp -r html/* $(DESTDIR)/usr/lib/downtube/html/
+
+ uglifyjs html/downtube.js -m -c > $(DESTDIR)/usr/lib/downtube/html/downtube.js
+ htmlmin html/index.html $(DESTDIR)/usr/lib/downtube/html/index.html
+ cleancss -o $(DESTDIR)/usr/lib/downtube/html/downtube.css html/downtube.css
+
downtube.fcgi: $(OBJECTS)
# link
%.fcgi: %.o
- $(CXX) $(CFLAGS) $(LIBS) -o $@ $^
+ $(CXX) $(CPPFLAGS) $(LIBS) -o $@ $^
# .cpp -> .o
%.o: %.cpp