aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNils Gillmann <ng0@n0.is>2018-09-01 13:50:47 +0000
committerNils Gillmann <ng0@n0.is>2018-09-01 13:50:47 +0000
commit4a70573c7570ce486e73d844e0ef16f7ad3c0e97 (patch)
tree6c0d59357bde6ddafd4f328be567cce041765190
parentea420872e90f19c8b4c29699b7f42abfa7c374e1 (diff)
downloadpleroma-documentation-4a70573c7570ce486e73d844e0ef16f7ad3c0e97.tar
pleroma-documentation-4a70573c7570ce486e73d844e0ef16f7ad3c0e97.tar.gz
Makefile, config.mk
Signed-off-by: Nils Gillmann <ng0@n0.is>
-rw-r--r--Makefile52
-rw-r--r--config.mk10
2 files changed, 62 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..91b6160
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,52 @@
+# This Makefile is in the public domain.
+
+include config.mk
+
+AUX = README LICENSE ChangeLog \
+ Makefile config.mk \
+ doc/agpl-3.0.texi doc/fdl-1.3.texi \
+ doc/pleroma.texi \
+ doc/chapters/contributing.texi \
+ doc/chapters/installation.texi \
+ doc/chapters/preface.texi \
+ doc/chapters/user.texi \
+ man/pleroma.1 \
+ man/pleromarc.5
+
+pleroma.info:
+
+pleroma.html:
+
+pleroma.pdf:
+
+dist: clean $(AUX)
+ @mkdir -p pleroma-documentation-${VERSION}
+ @cp -R LICENSE guix.scm Makefile config.mk README
+ tar -cvf pleroma-documentation-${VERSION}.tar pleroma-documentation-${VERSION}
+ compress -c pleroma-documentation-${VERSION}.tar > pleroma-documentation-${VERSION}.tar.Z
+ @rm -rf pleroma-documentation-${VERSION}
+
+dist-sign: dist
+ @gpg --local-user A88C8ADD129828D7EAC02E52E22F9BBFEE348588 --detach-sig ${TARBALL}
+ @echo signed tarball
+
+dist-publish: dist-sign
+ @scp ${TARBALL} conspiracy.of.n0.is:/var/www/d.n0.is/releases/pleroma-documentation/
+ @scp ${TARBALL}.sig conspiracy.of.n0.is:/var/www/d.n0.is/releases/pleroma-documentation/
+
+dist-release-doc: all
+ @echo TODO: Implement this for server side presentation
+
+install: all
+ @mkdir -p ${DESTDIR}${MAN5}
+ @mkdir -p ${DESTDIR}${MAN1}
+ @mkdir -p ${DESTDIR}${DOCDIR}
+
+# WIP
+uninstall: all
+ @rm -f ${MAN5}/pleromarc.5
+ @rm -f ${MAN1}/pleroma.1
+ @rm -f ${DOCDIR}/pleroma*
+
+clean:
+ rm -f *~ *.tar.Z
diff --git a/config.mk b/config.mk
new file mode 100644
index 0000000..53dfd60
--- /dev/null
+++ b/config.mk
@@ -0,0 +1,10 @@
+PREFIX = /usr/local
+MANDIR = ${PREFIX}/share/man/
+MAN1 = ${MANDIR}/man1/
+MAN5 = ${MANDIR}/man5/
+INFODIR = ${PREFIX}/info/
+
+DESTDIR =
+VERSION = 0.0.1
+
+TARBALL = pleroma-documentation-${VERSION}.tar.Z