re-create installation with make reset
[BackupPC.git] / Makefile
diff --git a/Makefile b/Makefile
new file mode 100644 (file)
index 0000000..407c3ee
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,18 @@
+all:
+       @echo "make reset"
+
+clean:
+       dropdb backuppc
+       createdb backuppc
+       createlang plpgsql backuppc
+       sudo chown backuppc cgi-bin/index.cgi
+       sudo chmod u+s cgi-bin/index.cgi
+       sudo rm -Rf /tmp/kinoindex
+
+update:
+       sudo -u backuppc ./bin/BackupPC_updatedb -c
+
+tar:
+       sudo -u backuppc ./bin/BackupPC_incPartsUpdate
+
+reset: clean update tar