Skip to content
Snippets Groups Projects
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
No related branches found
No related tags found
No related merge requests found
# 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>
#
......@@ -28,11 +28,11 @@ pkgname2=$(pkgname)-$(counter)
all: smartd smartctl
smartctl: atacmds.o scsicmds.o smartctl.c smartctl.h ataprint.o scsiprint.o atacmds.h ataprint.h scsicmds.h scsiprint.h
${CC} -o smartctl ${CFLAGS} atacmds.o scsicmds.o ataprint.o smartctl.c scsiprint.o
smartctl: atacmds.o scsicmds.o smartctl.c smartctl.h ataprint.o scsiprint.o atacmds.h ataprint.h scsicmds.h scsiprint.h VERSION
${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
${CC} -o smartd ${CFLAGS} scsicmds.o atacmds.o smartd.c
smartd: atacmds.o scsicmds.o smartd.c smartd.h atacmds.h scsicmds.h VERSION
${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
${CC} ${CFLAGS} -c ataprint.c
......@@ -46,12 +46,6 @@ atacmds.o: atacmds.h atacmds.c
scsicmds.o: scsicmds.h 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:
rm -f *.o smartctl smartd *~ \#*\# smartmontools*.tar.gz smartmontools*.rpm temp.*
......
2
3
#define SMARTMONTOOLS_VERSION 1
// $Id: atacmds.h,v 1.7 2002/10/11 12:21:09 ballen4705 Exp $
// $Id: atacmds.h,v 1.8 2002/10/11 12:48:27 ballen4705 Exp $
/*
* atacmds.h
*
......
Release: 1
Release: 2
Summary: SMARTmontools - for monitoring S.M.A.R.T. disks and devices
Name: smartmontools
Version: 5.0
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment