]> mj.ucw.cz Git - nwho.git/blob - Makefile
Make the systemd service be ordered after autofs.service, so that it is ordered befor...
[nwho.git] / Makefile
1 # Makefile for the nwho toolkit
2
3 CFLAGS=-O2 -Wall -Wextra -Wno-parentheses -DVERSION=$(VERSION) -std=gnu99
4 LDFLAGS=-s
5 ROOT=/
6 VERSION=1.15
7 ARCHIVE=nwho-$(VERSION).tar.gz
8
9 all: nwhod nwho
10
11 nwhod: nwhod.o util.o
12 nwhod.o: nwhod.c nwho.h
13 util.o: util.c nwho.h
14
15 nwho: nwho.o util.o
16 nwho.o: nwho.c nwho.h
17
18 clean:
19         rm -f *.o nwhod nwho *~
20
21 install:
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
27
28 release:
29         git tag v$(VERSION)
30         git push --tags
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/