From 9cea4e42e4619d0724f636d040c94128b181f719 Mon Sep 17 00:00:00 2001 From: Roland Reichwein Date: Sat, 30 May 2020 19:24:24 +0200 Subject: Added debian/ --- Makefile | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'Makefile') 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 -- cgit v1.2.3