Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Branch: master
Fetching contributors…

Cannot retrieve contributors at this time

46 lines (35 sloc) 1.09 kB
SHELL = /bin/bash
VERSION := $(shell python -c 'from wader.common.consts import APP_VERSION; print APP_VERSION')
SOURCES := $(shell rpmbuild --eval '%{_topdir}' 2>/dev/null)/SOURCES
WV := wader-$(VERSION)
all:
@echo Usage: make deb \[TARGET=ubuntu-lucid\] \| rpm
rpm:
@if [ ! -d $(SOURCES) ] ;\
then\
echo 'SOURCES does not exist, are you running on a non RPM based system?';\
exit 1;\
fi
touch resources/extra/networks.py
tar -jcvf $(SOURCES)/$(WV).tar.bz2 --exclude=.git --transform="s/^\./$(WV)/" .
rpmbuild -ba resources/rpm/wader.spec
deb:
@if [ ! -d /var/lib/dpkg ] ;\
then\
echo 'Debian package directory does not exist, are you running on a non Debian based system?';\
exit 1;\
fi
touch resources/extra/networks.py
@if [ -d packaging/debian/$(TARGET)/debian ] ;\
then\
PKGSOURCE=$(TARGET);\
else\
PKGSOURCE=generic;\
fi;\
tar -C packaging/debian/$$PKGSOURCE -cf - debian | tar -xf -
@if ! head -1 debian/changelog | grep -q $(VERSION) ;\
then\
echo Changelog and package version are different;\
exit 1;\
fi
dpkg-buildpackage -rfakeroot
Jump to Line
Something went wrong with that request. Please try again.