version = 0.1.0 project = ldetect-lst prefix = /usr datadir = $(prefix)/share dir = $(datadir)/$(project) build: clean: rm -f *~ install: build install -d $(dir) (echo "# !! The original version is available in CVS at" ; \ echo "# export CVSROOT=:pserver:anoncvs@linux-mandrake.com:/home/cvs/cooker" ; \ echo "# cvs login (password ``cvs'')" ; \ echo "# cvs checkout soft/$(project)" ; \ cat pcitable \ ) > $(dir)/pcitable rpm: clean $(RPM) perl -pi -e "s/^(%define version).*/\1 $(version)/" $(project).spec (echo "# !! DON'T MODIFY HERE, MODIFY IN THE CVS !!" ; \ echo "%define version $(version)" ; \ cat $(project).spec \ ) > $(RPM)/SPECS/$(project).spec (cd .. ; tar cfj $(RPM)/SOURCES/$(project).tar.bz2 $(project)) rpm -ba --clean --rmsource --rmspec $(RPM)/SPECS/$(project).spec