~ubuntu-branches/ubuntu/saucy/nut/saucy

« back to all changes in this revision

Viewing changes to models/genmb

  • Committer: Bazaar Package Importer
  • Author(s): Arnaud Quette
  • Date: 2004-05-28 13:10:01 UTC
  • mto: (16.1.1 squeeze)
  • mto: This revision was merged to the branch mainline in revision 3.
  • Revision ID: james.westby@ubuntu.com-20040528131001-yj2m9qcez4ya2w14
Tags: upstream-1.4.2
ImportĀ upstreamĀ versionĀ 1.4.2

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#! /bin/sh
2
 
#
3
 
# Network UPS Tools: models/genmb
4
 
#
5
 
# This is a hack to create a bunch of identical rules for building
6
 
# the drivers without relying on either the % patterns of GNU Make or the
7
 
# for...endfor of BSD Make.  They're both neat, but they're also not
8
 
# portable.  Ugh.
9
 
#
10
 
 
11
 
MFMB=Makefile.modelbuild
12
 
 
13
 
rm -f $MFMB
14
 
 
15
 
cat > $MFMB << EOF
16
 
# Network UPS Tools: models/$MFMB
17
 
#
18
 
# WARNING: This file is generated by the genmb script.  Any changes
19
 
#          to this file will be erased the next time it runs!
20
 
#
21
 
EOF
22
 
 
23
 
for i in $*
24
 
do
25
 
  echo "$i: $i.o main.o upscommon.o ../include/shared.h ../include/shared-tables.h ../common/upsconf.o ../common/parseconf.o \$(LIBDEP)" >> $MFMB
26
 
  echo "        \$(CC) \$(CFLAGS) -o $i $i.o main.o upscommon.o ../common/upsconf.o ../common/parseconf.o \$(LIBOBJ)" >> $MFMB
27
 
done