Commit 36caa9f7 authored by ballen4705's avatar ballen4705
Browse files

Cleaner solution to versioning


git-svn-id: https://smartmontools.svn.sourceforge.net/svnroot/smartmontools/trunk@29 4ea69e1a-61f1-4043-bf83-b5c94c648137
parent 1ae97724
# Makefile for smartmontools # Makefile for smartmontools
# #
# $Id: Makefile,v 1.11 2002/10/11 12:19:00 ballen4705 Exp $ # $Id: Makefile,v 1.12 2002/10/11 12:48:27 ballen4705 Exp $
# #
# Copyright (C) 2002 Bruce Allen <smartmontools-support@lists.sourceforge.net> # Copyright (C) 2002 Bruce Allen <smartmontools-support@lists.sourceforge.net>
# #
...@@ -28,11 +28,11 @@ pkgname2=$(pkgname)-$(counter) ...@@ -28,11 +28,11 @@ pkgname2=$(pkgname)-$(counter)
all: smartd smartctl all: smartd smartctl
smartctl: atacmds.o scsicmds.o smartctl.c smartctl.h ataprint.o scsiprint.o atacmds.h ataprint.h scsicmds.h scsiprint.h smartctl: atacmds.o scsicmds.o smartctl.c smartctl.h ataprint.o scsiprint.o atacmds.h ataprint.h scsicmds.h scsiprint.h VERSION
${CC} -o smartctl ${CFLAGS} atacmds.o scsicmds.o ataprint.o smartctl.c scsiprint.o ${CC} -DSMARTMONTOOLS_VERSION=$(counter) -o smartctl ${CFLAGS} atacmds.o scsicmds.o ataprint.o smartctl.c scsiprint.o
smartd: atacmds.o scsicmds.o smartd.c smartd.h atacmds.h scsicmds.h smartd: atacmds.o scsicmds.o smartd.c smartd.h atacmds.h scsicmds.h VERSION
${CC} -o smartd ${CFLAGS} scsicmds.o atacmds.o smartd.c ${CC} -DSMARTMONTOOLS_VERSION=$(counter) -o smartd ${CFLAGS} scsicmds.o atacmds.o smartd.c
ataprint.o: atacmds.o ataprint.h ataprint.c smartctl.h extern.h ataprint.o: atacmds.o ataprint.h ataprint.c smartctl.h extern.h
${CC} ${CFLAGS} -c ataprint.c ${CC} ${CFLAGS} -c ataprint.c
...@@ -46,12 +46,6 @@ atacmds.o: atacmds.h atacmds.c ...@@ -46,12 +46,6 @@ atacmds.o: atacmds.h atacmds.c
scsicmds.o: scsicmds.h scsicmds.c scsicmds.o: scsicmds.h scsicmds.c
${CC} ${CFLAGS} -c scsicmds.c ${CC} ${CFLAGS} -c scsicmds.c
atacmds.h: VERSION
cat atacmds.h | sed '/SMARTMONTOOLS_VERSION/d' > temp.atacmds.h
echo "#define SMARTMONTOOLS_VERSION " $(counter) > temp.head
cat temp.head temp.atacmds.h > atacmds.h
rm -f temp.atacmds.h temp.head
clean: clean:
rm -f *.o smartctl smartd *~ \#*\# smartmontools*.tar.gz smartmontools*.rpm temp.* rm -f *.o smartctl smartd *~ \#*\# smartmontools*.tar.gz smartmontools*.rpm temp.*
......
#define SMARTMONTOOLS_VERSION 1 // $Id: atacmds.h,v 1.8 2002/10/11 12:48:27 ballen4705 Exp $
// $Id: atacmds.h,v 1.7 2002/10/11 12:21:09 ballen4705 Exp $
/* /*
* atacmds.h * atacmds.h
* *
......
Release: 1 Release: 2
Summary: SMARTmontools - for monitoring S.M.A.R.T. disks and devices Summary: SMARTmontools - for monitoring S.M.A.R.T. disks and devices
Name: smartmontools Name: smartmontools
Version: 5.0 Version: 5.0
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment