upgpkg: wordpress 6.2.1-1
[ArchLinux/community.git] / unhide / trunk / Makefile
blob1d07d6a107c57c5e4f15289020d786b462fe3736
1 PREFIX ?= /usr/local
3 BINS ?= unhide-linux unhide_rb unhide-tcp unhide-posix
4 LINUX_SRC:= $(sort $(wildcard unhide-linux*.c))
6 CFLAGS ?= -Wall
7 CFLAGS += -Wall
9 all: $(BINS)
10 unhide-linux: $(LINUX_SRC) unhide-output.c
11 unhide-linux: LDFLAGS += -pthread
12 unhide-tcp: unhide-tcp.c unhide-tcp-fast.c unhide-output.c
14 install:
15 install -d -m 755 '$(DESTDIR)$(PREFIX)'/bin
16 for bin in $(BINS); do \
17 install -m 755 $$bin '$(DESTDIR)$(PREFIX)'/bin/$$bin; \
18 done
19 for man in man/*.8 man/*/*.8; do \
20 lang=$${man%/*}; \
21 lang=$${lang#man}; \
22 manfile=$${man##*/}; \
23 install -d -m 755 '$(DESTDIR)$(PREFIX)'/share/man/$$lang/man8; \
24 install -m 644 $$man '$(DESTDIR)$(PREFIX)'/share/man/$$lang/man8/$$manfile; \
25 done