]> git.ipfire.org Git - ipfire-2.x.git/blob - src/hwinfo/src/hd/Makefile
Kleiner netter neuer Versuch.
[ipfire-2.x.git] / src / hwinfo / src / hd / Makefile
1 TOPDIR = ../..
2 TARGETS = $(LIBHD_D)
3 CLEANFILES = version.h
4
5 include $(TOPDIR)/Makefile.common
6
7 version.h: $(TOPDIR)/VERSION
8 @echo "#define HD_VERSION_STRING \"`cat $(TOPDIR)/VERSION`\"" >$@
9
10 hd.h: $(TOPDIR)/VERSION
11 @perl -pi -e "s/define\s+HD_VERSION\s+\d+/define HD_VERSION\t$(LIBHD_MAJOR_VERSION)/" $@
12
13 $(LIBHD_D): $(OBJS)
14 ar r $(LIBHD) $?