1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34
|
# Edited for Debian GNU/Linux.
DESTDIR=
INSTALL=$(DESTDIR)/usr/sbin
nullidentd: nullidentd.c version.h
$(CC) $(CFLAGS) -o nullidentd nullidentd.c $(LDFLAGS)
dist: .version
mkdir nullidentd-`cat .version`
cp -P `p4 files ... | sed s/\\\\/\\\\/depot\\\\/home\\\\/nullidentd\\\\/// | sed s/#.*$$//` nullidentd-`cat .version`/
find nullidentd-`cat .version` -type f -exec chmod 664 {} \;
tar zcf nullidentd-`cat .version`.tar.gz nullidentd-`cat .version`/
rm -rf nullidentd-`cat .version`
.version: README
egrep "^Version" README | sed 's/Version //' > .version
version.h: .version
echo "const char VERSION[] = \"`cat .version`\";" > version.h
clean:
rm -f .version version.h nullidentd
install: nullidentd
#rm -f $(INSTALL)/nullidentd
cp nullidentd $(INSTALL)/nullidentd
chown root.root $(INSTALL)/nullidentd
#chmod a-rw $(INSTALL)/nullidentd
#chmod a+x $(INSTALL)/nullidentd
chmod 0755 $(INSTALL)/nullidentd
|