1 # Makefile for the nwho toolkit
3 CFLAGS=-O2 -Wall -Wextra -Wno-parentheses -DVERSION=$(VERSION) -std=gnu99
7 ARCHIVE=nwho-$(VERSION).tar.gz
12 nwhod.o: nwhod.c nwho.h
19 rm -f *.o nwhod nwho *~
22 mkdir -p $(ROOT)/usr/bin $(ROOT)/usr/sbin
23 install -s -m 755 nwho $(ROOT)/usr/bin
24 ln -sf nwho $(ROOT)/usr/bin/nuptime
25 install -s -m 755 nwhod $(ROOT)/usr/sbin
26 install -d -m 755 $(ROOT)/var/state/nwho
31 git archive --format=tar --prefix=nwho-$(VERSION)/ HEAD | gzip >$(ARCHIVE)
32 scp $(ARCHIVE) atrey:~ftp/pub/local/mj/linux/
33 ssh jw "cd www && bin/release-prog nwho $(VERSION)"
34 mv $(ARCHIVE) ~/archives/sw/nwho/