summaryrefslogtreecommitdiffhomepage
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile17
1 files changed, 15 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 3750d74..14f1778 100644
--- a/Makefile
+++ b/Makefile
@@ -2,8 +2,10 @@ include common.mk
VERSION=$(shell dpkg-parsechangelog --show-field Version)
-DISTROS=base base-i386 debian10 debian11 ubuntu2004 ubuntu2104 ubuntu2110 ubuntu2204
+DISTROS=base base-i386 debian10 debian11 ubuntu2004 ubuntu2204
PROJECTNAME=webserver
+TGZNAME=$(shell ls -t ../webserver-*.tar.xz | head -n1 | sed -e 's,^../,,')
+YEAR=$(shell date +"%Y")
PLUGINS= \
cgi \
fcgi \
@@ -13,7 +15,7 @@ PLUGINS= \
webbox \
weblog
-CXXFLAGS+=-fPIE -DVERSION=\"$(VERSION)\"
+CXXFLAGS+=-fPIE -DVERSION=\"$(VERSION)\" -DYEAR=\"$(YEAR)\"
LDLIBS+=\
-lcommon \
@@ -103,12 +105,20 @@ $(DISTROS): deb-src
debs: $(DISTROS)
+upload:
+ scp ../$(TGZNAME) antcom.de:/var/www/reichwein.it-download/
+ scp -r result antcom.de:
+ scp -r install-webserver.sh antcom.de:
+ ssh antcom.de ./install-webserver.sh $(VERSION)
+ ssh antcom.de rm -rf install-webserver.sh result
+
clean:
-rm -f $(PROJECTNAME)
-rm -f plugins/*.so
-find . -name '*.o' -o -name '*.d' -o -name '*.gcno' -o -name '*.gcda' -o -name '*.so' | xargs rm -f
#for i in $(PLUGINS) ; do $(MAKE) -C plugins/$$i clean ; done
for i in libcommon tests ; do $(MAKE) -C $$i clean ; done
+ -rm -rf result
DISTFILES= \
archive.h \
@@ -141,6 +151,7 @@ DISTFILES= \
webserver.1 \
README.txt \
LICENSE.txt \
+ install-webserver.sh \
Makefile \
common.mk \
debian/changelog \
@@ -214,6 +225,8 @@ dist: clean
rm -rf $(PROJECTNAME)-$(VERSION)
ls -l ../$(PROJECTNAME)-$(VERSION).tar.xz
+dist-all: dist upload
+
.PHONY: clean all zip test install deb deb-src debs all $(DISTROS) $(PLUGINS)
-include $(wildcard $(SRC:.cpp=.d))