summaryrefslogtreecommitdiffhomepage
path: root/Makefile
diff options
context:
space:
mode:
authorRoland Reichwein <mail@reichwein.it>2020-05-30 19:24:24 +0200
committerRoland Reichwein <mail@reichwein.it>2020-05-30 19:24:24 +0200
commit9cea4e42e4619d0724f636d040c94128b181f719 (patch)
treee710e8f581bb82ea704b0ffa7c462335bed4fd98 /Makefile
parent28e590d5c2d6d3bb38eae7cb1978af233ecb5f64 (diff)
Added debian/
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