Document gotcha for --pidns
[untie.git] / Makefile
blob7661c8f09b5243de53dd9ae91995679f42f63e05
1 PREFIX = /usr/local
3 PACKAGE = untie
4 OBJECTS = cmdline.o untie.o
5 CFLAGS += -Wall
7 all: $(PACKAGE)
9 untie: $(OBJECTS)
11 untie.o: cmdline.h
13 cmdline.c cmdline.h: $(PACKAGE).ggo NEWS
14 gengetopt -u'COMMAND' --set-version=$(shell head -n 1 NEWS) < $<
16 .PHONY: clean
17 clean:
18 -rm $(OBJECTS) $(PACKAGE)
20 install: all
21 install -d $(PREFIX)/sbin
22 install -m 755 $(PACKAGE) $(PREFIX)/sbin/$(PACKAGE)
23 install -d $(PREFIX)/share/man/man8/
24 gzip < $(PACKAGE).8 > $(PREFIX)/share/man/man8/$(PACKAGE).8.gz
26 uninstall:
27 rm $(PREFIX)/sbin/$(PACKAGE)
28 rm $(PREFIX)/share/man/man8/$(PACKAGE).8.gz