]> git.ipfire.org Git - pakfire.git/commitdiff
Add Makefile.
authorMichael Tremer <michael.tremer@ipfire.org>
Sun, 13 Feb 2011 15:35:16 +0000 (16:35 +0100)
committerMichael Tremer <michael.tremer@ipfire.org>
Sun, 13 Feb 2011 15:35:16 +0000 (16:35 +0100)
Makefile [new file with mode: 0644]

diff --git a/Makefile b/Makefile
new file mode 100644 (file)
index 0000000..c0a3ae4
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,24 @@
+
+DESTDIR ?= /
+
+all: build
+
+.PHONY: build
+build:
+       python setup.py build
+
+.PHONY: clean
+clean:
+       python setup.py clean
+
+.PHONY: dist
+dist:
+       python setup.py sdist
+
+.PHONY: install
+install:
+       python setup.py install  --root $(DESTDIR)
+
+       -mkdir -pv $(DESTDIR)/etc/pakfire.repos.d
+       cp -vf examples/pakfire.conf $(DESTDIR)/etc/pakfire.conf
+       cp -vf examples/pakfire.repos.d/* $(DESTDIR)/etc/pakfire.repos.d/