diff options
author | Olivier Blin <oblin@mandriva.org> | 2005-09-28 12:52:36 +0000 |
---|---|---|
committer | Olivier Blin <oblin@mandriva.org> | 2005-09-28 12:52:36 +0000 |
commit | 36c0bad1fa4d61860a9cb4688759a49fa22cde67 (patch) | |
tree | 44f4c1dcb29c5fa37a46aa2eb76bdeadedf06647 /Makefile | |
parent | 1ed8ad88617b996a1dc37deddd2f44dd36adf4af (diff) | |
download | mandi-36c0bad1fa4d61860a9cb4688759a49fa22cde67.tar mandi-36c0bad1fa4d61860a9cb4688759a49fa22cde67.tar.gz mandi-36c0bad1fa4d61860a9cb4688759a49fa22cde67.tar.bz2 mandi-36c0bad1fa4d61860a9cb4688759a49fa22cde67.tar.xz mandi-36c0bad1fa4d61860a9cb4688759a49fa22cde67.zip |
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..2f30e1c --- /dev/null +++ b/Makefile @@ -0,0 +1,18 @@ +PACKAGE = mandi +VERSION := $(shell rpm -q --qf '%{VERSION}\n' --specfile $(PACKAGE).spec | head -1) +RELEASE := $(shell rpm -q --qf '%{RELEASE}\n' --specfile $(PACKAGE).spec | head -1) + +all: + (cd src; make) + +clean: + find -maxdepth 1 -type d -name 'mandi-*' -exec rm -r {} \; + find -name '*~' -exec rm {} \; + make -C src clean + +dist: clean + mkdir ../$(PACKAGE)-$(VERSION) + tar c . | tar x -C ../$(PACKAGE)-$(VERSION) + tar cvjf ../mandi-$(VERSION).tar.bz2 ../mandi-$(VERSION) + rm -rf ../mandi-$(VERSION) + rpm -ts ../mandi-$(VERSION).tar.bz2 |