RELEASE=$(shell rpm -q --define 'dist %{nil}' --specfile --qf "%{release}" hwdata.spec)
SOURCEDIR := $(shell pwd)
-include Makefile.inc
-
CVSROOT = $(shell cat CVS/Root 2>/dev/null || :)
CVSTAG = $(NAME)-r$(subst .,-,$(VERSION))
.PHONY: all install tag force-tag check commit create-archive archive srpm-x \
clean clog new-pci-ids new-usb-ids new-pnp-ids
-all:
+include Makefile.inc
+
+all:
+
+Makefile.inc: configure
+ ./configure
+ @echo "$@ generated. Run the make again."
+ @exit 1
-install:
+install: Makefile.inc
mkdir -p -m 755 $(DESTDIR)$(datadir)/$(NAME)
for foo in $(FILES) ; do \
install -m 644 $$foo $(DESTDIR)$(datadir)/$(NAME) ;\
done
- mkdir -p -m 755 $(DESTDIR)$(prefix)/lib/modprobe.d
- install -m 644 -T blacklist.conf $(DESTDIR)$(prefix)/lib/modprobe.d/dist-blacklist.conf
+ mkdir -p -m 755 $(DESTDIR)$(libdir)/modprobe.d
+ install -m 644 -T blacklist.conf $(DESTDIR)$(libdir)/modprobe.d/dist-blacklist.conf
commit:
git commit -a ||:
# Licensed under the new-BSD license (http://www.opensource.org/licenses/bsd-license.php)
prefix=/usr
+datarootdir=${datarootdir:-${prefix}/share}
# Little helper function for reading args from the commandline.
# it automatically handles -a b and -a=b variants, and returns 1 if
bindir ?= ${bindir:-${prefix}/bin}
sbindir ?= ${sbindir:-${prefix}/sbin}
libexecdir ?= ${libexecdir:-${prefix}/libexec}
-datarootdir ?= ${datarootdir:-${prefix}/share}
+datarootdir ?= ${datarootdir}
datadir ?= ${datadir:-${datarootdir}}
sysconfdir ?= ${sysconfdir:-${prefix}/etc}
libdir ?= ${libdir:-${prefix}/lib}