diff options
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/Makefile b/Makefile new file mode 100644 index 00000000..c09144b5 --- /dev/null +++ b/Makefile @@ -0,0 +1,25 @@ +version = 0.1.0 + +project = ldetect-lst +prefix = /usr +datadir = $(prefix)/share +dir = $(datadir)/$(project) + +build: + +clean: + rm -f *~ + +install: build + install -d $(dir) + install -m 644 pcitable $(dir) + + +rpm: clean $(RPM) + (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 |