summaryrefslogtreecommitdiffstats
path: root/Makefile
blob: 3e46fb22439783ace1b9bc2fd9dd5f7fea64fa65 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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) --exclude=CVS
	tar cvjf ../mandi-$(VERSION).tar.bz2 ../mandi-$(VERSION)
	rm -rf ../mandi-$(VERSION)
	rpm -ts ../mandi-$(VERSION).tar.bz2