Page Menu
Home
Software Heritage
Search
Configure Global Search
Log In
Files
F8392117
Makefile
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
808 B
Subscribers
None
Makefile
View Options
# Depends: postgresql-client, postgresql-autodoc
DBNAME = softwareheritage-archiver-dev
DOCDIR = autodoc
SQL_INIT = swh-init.sql
SQL_SCHEMA = swh-archiver-schema.sql
SQL_FUNC = swh-archiver-func.sql
SQL_DATA = swh-archiver-data.sql
SQLS = $(SQL_INIT) $(SQL_SCHEMA) $(SQL_FUNC) $(SQL_DATA)
PSQL_BIN = psql
PSQL_FLAGS = --single-transaction --echo-all -X
PSQL = $(PSQL_BIN) $(PSQL_FLAGS)
all:
createdb: createdb-stamp
createdb-stamp: $(SQL_INIT)
createdb $(DBNAME)
touch $@
filldb: filldb-stamp
filldb-stamp: createdb-stamp
cat $(SQLS) | $(PSQL) $(DBNAME)
touch $@
dropdb:
-dropdb $(DBNAME)
dumpdb: swh-archiver.dump
swh.dump: filldb-stamp
pg_dump -Fc $(DBNAME) > $@
clean:
rm -rf *-stamp $(DOCDIR)/
distclean: clean dropdb
rm -f swh.dump
.PHONY: all initdb createdb dropdb doc clean
File Metadata
Details
Attached
Mime Type
text/x-makefile
Expires
Jun 4 2025, 6:54 PM (11 w, 2 d ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3242303
Attached To
rDARC Software Heritage Archiver
Event Timeline
Log In to Comment