annotate Makefile @ 22:78a0d5b0d366

Added tag version-3 for changeset 5f9dc8f3c53e
author Guido Berhoerster <guido+sencrypt@berhoerster.name>
date Mon, 05 Aug 2019 11:20:01 +0200
parents 5f9dc8f3c53e
children 110b3a7a40c2
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
73af139d1a94 Initial revision
Guido Berhoerster <guido+sencrypt@berhoerster.name>
parents:
diff changeset
1 #
73af139d1a94 Initial revision
Guido Berhoerster <guido+sencrypt@berhoerster.name>
parents:
diff changeset
2 # Copyright (C) 2014 Guido Berhoerster <guido+sencrypt@berhoerster.name>
73af139d1a94 Initial revision
Guido Berhoerster <guido+sencrypt@berhoerster.name>
parents:
diff changeset
3 #
73af139d1a94 Initial revision
Guido Berhoerster <guido+sencrypt@berhoerster.name>
parents:
diff changeset
4 # Permission is hereby granted, free of charge, to any person obtaining
73af139d1a94 Initial revision
Guido Berhoerster <guido+sencrypt@berhoerster.name>
parents:
diff changeset
5 # a copy of this software and associated documentation files (the
73af139d1a94 Initial revision
Guido Berhoerster <guido+sencrypt@berhoerster.name>
parents:
diff changeset
6 # "Software"), to deal in the Software without restriction, including
73af139d1a94 Initial revision
Guido Berhoerster <guido+sencrypt@berhoerster.name>
parents:
diff changeset
7 # without limitation the rights to use, copy, modify, merge, publish,
73af139d1a94 Initial revision
Guido Berhoerster <guido+sencrypt@berhoerster.name>
parents:
diff changeset
8 # distribute, sublicense, and/or sell copies of the Software, and to
73af139d1a94 Initial revision
Guido Berhoerster <guido+sencrypt@berhoerster.name>
parents:
diff changeset
9 # permit persons to whom the Software is furnished to do so, subject to
73af139d1a94 Initial revision
Guido Berhoerster <guido+sencrypt@berhoerster.name>
parents:
diff changeset
10 # the following conditions:
73af139d1a94 Initial revision
Guido Berhoerster <guido+sencrypt@berhoerster.name>
parents:
diff changeset
11 #
73af139d1a94 Initial revision
Guido Berhoerster <guido+sencrypt@berhoerster.name>
parents:
diff changeset
12 # The above copyright notice and this permission notice shall be included
73af139d1a94 Initial revision
Guido Berhoerster <guido+sencrypt@berhoerster.name>
parents:
diff changeset
13 # in all copies or substantial portions of the Software.
73af139d1a94 Initial revision
Guido Berhoerster <guido+sencrypt@berhoerster.name>
parents:
diff changeset
14 #
73af139d1a94 Initial revision
Guido Berhoerster <guido+sencrypt@berhoerster.name>
parents:
diff changeset
15 # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
73af139d1a94 Initial revision
Guido Berhoerster <guido+sencrypt@berhoerster.name>
parents:
diff changeset
16 # EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
73af139d1a94 Initial revision
Guido Berhoerster <guido+sencrypt@berhoerster.name>
parents:
diff changeset
17 # MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
73af139d1a94 Initial revision
Guido Berhoerster <guido+sencrypt@berhoerster.name>
parents:
diff changeset
18 # IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
73af139d1a94 Initial revision
Guido Berhoerster <guido+sencrypt@berhoerster.name>
parents:
diff changeset
19 # CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
73af139d1a94 Initial revision
Guido Berhoerster <guido+sencrypt@berhoerster.name>
parents:
diff changeset
20 # TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
73af139d1a94 Initial revision
Guido Berhoerster <guido+sencrypt@berhoerster.name>
parents:
diff changeset
21 # SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
73af139d1a94 Initial revision
Guido Berhoerster <guido+sencrypt@berhoerster.name>
parents:
diff changeset
22 #
73af139d1a94 Initial revision
Guido Berhoerster <guido+sencrypt@berhoerster.name>
parents:
diff changeset
23
73af139d1a94 Initial revision
Guido Berhoerster <guido+sencrypt@berhoerster.name>
parents:
diff changeset
24 PACKAGE = sencrypt
21
5f9dc8f3c53e Release version 3
Guido Berhoerster <guido+sencrypt@berhoerster.name>
parents: 19
diff changeset
25 VERSION = 3
0
73af139d1a94 Initial revision
Guido Berhoerster <guido+sencrypt@berhoerster.name>
parents:
diff changeset
26 DISTNAME := $(PACKAGE)-$(VERSION)
73af139d1a94 Initial revision
Guido Berhoerster <guido+sencrypt@berhoerster.name>
parents:
diff changeset
27 DECRYPT_ALIAS = sdecrypt
73af139d1a94 Initial revision
Guido Berhoerster <guido+sencrypt@berhoerster.name>
parents:
diff changeset
28
12
14e58decdf87 Detect the OS and configure build flags and libraries automatically
Guido Berhoerster <guido+sencrypt@berhoerster.name>
parents: 11
diff changeset
29 # gcc, clang, icc, Sun/Solaris Studio
14e58decdf87 Detect the OS and configure build flags and libraries automatically
Guido Berhoerster <guido+sencrypt@berhoerster.name>
parents: 11
diff changeset
30 CC := $(CC) -std=c99
0
73af139d1a94 Initial revision
Guido Berhoerster <guido+sencrypt@berhoerster.name>
parents:
diff changeset
31 COMPILE.c = $(CC) $(CFLAGS) $(XCFLAGS) $(CPPFLAGS) $(XCPPFLAGS) $(TARGET_ARCH) -c
73af139d1a94 Initial revision
Guido Berhoerster <guido+sencrypt@berhoerster.name>
parents:
diff changeset
32 # gcc, clang, icc
73af139d1a94 Initial revision
Guido Berhoerster <guido+sencrypt@berhoerster.name>
parents:
diff changeset
33 MAKEDEPEND.c = $(CC) -MM $(CFLAGS) $(XCFLAGS) $(CPPFLAGS) $(XCPPFLAGS)
73af139d1a94 Initial revision
Guido Berhoerster <guido+sencrypt@berhoerster.name>
parents:
diff changeset
34 # Sun/Solaris Studio
73af139d1a94 Initial revision
Guido Berhoerster <guido+sencrypt@berhoerster.name>
parents:
diff changeset
35 #MAKEDEPEND.c = $(CC) -xM1 $(CFLAGS) $(XCFLAGS) $(CPPFLAGS) $(XCPPFLAGS)
73af139d1a94 Initial revision
Guido Berhoerster <guido+sencrypt@berhoerster.name>
parents:
diff changeset
36 # X makedepend
73af139d1a94 Initial revision
Guido Berhoerster <guido+sencrypt@berhoerster.name>
parents:
diff changeset
37 #MAKEDEPEND.c = makedepend -f- -Y -- $(CFLAGS) $(XCFLAGS) $(CPPFLAGS) $(XCPPFLAGS) --
73af139d1a94 Initial revision
Guido Berhoerster <guido+sencrypt@berhoerster.name>
parents:
diff changeset
38 LINK.c = $(CC) $(CFLAGS) $(XCFLAGS) $(CPPFLAGS) $(XCPPFLAGS) $(LDFLAGS) $(XLDFLAGS) $(TARGET_ARCH)
73af139d1a94 Initial revision
Guido Berhoerster <guido+sencrypt@berhoerster.name>
parents:
diff changeset
39 LINK.o = $(CC) $(LDFLAGS) $(XLDFLAGS) $(TARGET_ARCH)
13
5a992d873084 Use a symlink for the manpage alias instead of a soelim stub
Guido Berhoerster <guido+sencrypt@berhoerster.name>
parents: 12
diff changeset
40 CP := cp
0
73af139d1a94 Initial revision
Guido Berhoerster <guido+sencrypt@berhoerster.name>
parents:
diff changeset
41 INSTALL := install
73af139d1a94 Initial revision
Guido Berhoerster <guido+sencrypt@berhoerster.name>
parents:
diff changeset
42 INSTALL.exec := $(INSTALL) -D -m 0755
73af139d1a94 Initial revision
Guido Berhoerster <guido+sencrypt@berhoerster.name>
parents:
diff changeset
43 INSTALL.data := $(INSTALL) -D -m 0644
13
5a992d873084 Use a symlink for the manpage alias instead of a soelim stub
Guido Berhoerster <guido+sencrypt@berhoerster.name>
parents: 12
diff changeset
44 INSTALL.link := $(CP) -f -P
0
73af139d1a94 Initial revision
Guido Berhoerster <guido+sencrypt@berhoerster.name>
parents:
diff changeset
45 PAX := pax
73af139d1a94 Initial revision
Guido Berhoerster <guido+sencrypt@berhoerster.name>
parents:
diff changeset
46 GZIP := gzip
73af139d1a94 Initial revision
Guido Berhoerster <guido+sencrypt@berhoerster.name>
parents:
diff changeset
47 SED := sed
1
f0ceb0ad20e7 Add manpage
Guido Berhoerster <guido+sencrypt@berhoerster.name>
parents: 0
diff changeset
48 XSLTPROC := xsltproc
f0ceb0ad20e7 Add manpage
Guido Berhoerster <guido+sencrypt@berhoerster.name>
parents: 0
diff changeset
49 DOCBOOK5_MANPAGES_STYLESHEET = http://docbook.sourceforge.net/release/xsl-ns/current/manpages/docbook.xsl
13
5a992d873084 Use a symlink for the manpage alias instead of a soelim stub
Guido Berhoerster <guido+sencrypt@berhoerster.name>
parents: 12
diff changeset
50 DOCBOOK5_MANPAGES_FLAGS = --stringparam man.authors.section.enabled 0 \
5a992d873084 Use a symlink for the manpage alias instead of a soelim stub
Guido Berhoerster <guido+sencrypt@berhoerster.name>
parents: 12
diff changeset
51 --stringparam man.copyright.section.enabled 0
1
f0ceb0ad20e7 Add manpage
Guido Berhoerster <guido+sencrypt@berhoerster.name>
parents: 0
diff changeset
52
f0ceb0ad20e7 Add manpage
Guido Berhoerster <guido+sencrypt@berhoerster.name>
parents: 0
diff changeset
53 define generate-manpage-rule =
13
5a992d873084 Use a symlink for the manpage alias instead of a soelim stub
Guido Berhoerster <guido+sencrypt@berhoerster.name>
parents: 12
diff changeset
54 $(addsuffix .%,$(basename $1)): $(addsuffix .%.xml,$(basename $(firstword $1))) docbook-update-source-data.xsl
1
f0ceb0ad20e7 Add manpage
Guido Berhoerster <guido+sencrypt@berhoerster.name>
parents: 0
diff changeset
55 $$(XSLTPROC) \
f0ceb0ad20e7 Add manpage
Guido Berhoerster <guido+sencrypt@berhoerster.name>
parents: 0
diff changeset
56 --xinclude \
f0ceb0ad20e7 Add manpage
Guido Berhoerster <guido+sencrypt@berhoerster.name>
parents: 0
diff changeset
57 --stringparam package $$(PACKAGE) \
13
5a992d873084 Use a symlink for the manpage alias instead of a soelim stub
Guido Berhoerster <guido+sencrypt@berhoerster.name>
parents: 12
diff changeset
58 --stringparam version $$(VERSION) \
1
f0ceb0ad20e7 Add manpage
Guido Berhoerster <guido+sencrypt@berhoerster.name>
parents: 0
diff changeset
59 docbook-update-source-data.xsl $$< | \
f0ceb0ad20e7 Add manpage
Guido Berhoerster <guido+sencrypt@berhoerster.name>
parents: 0
diff changeset
60 $$(XSLTPROC) \
f0ceb0ad20e7 Add manpage
Guido Berhoerster <guido+sencrypt@berhoerster.name>
parents: 0
diff changeset
61 --xinclude \
13
5a992d873084 Use a symlink for the manpage alias instead of a soelim stub
Guido Berhoerster <guido+sencrypt@berhoerster.name>
parents: 12
diff changeset
62 --output $(firstword $1) \
1
f0ceb0ad20e7 Add manpage
Guido Berhoerster <guido+sencrypt@berhoerster.name>
parents: 0
diff changeset
63 $$(DOCBOOK5_MANPAGES_FLAGS) \
f0ceb0ad20e7 Add manpage
Guido Berhoerster <guido+sencrypt@berhoerster.name>
parents: 0
diff changeset
64 $$(DOCBOOK5_MANPAGES_STYLESHEET) \
f0ceb0ad20e7 Add manpage
Guido Berhoerster <guido+sencrypt@berhoerster.name>
parents: 0
diff changeset
65 -
13
5a992d873084 Use a symlink for the manpage alias instead of a soelim stub
Guido Berhoerster <guido+sencrypt@berhoerster.name>
parents: 12
diff changeset
66 for alias in $(wordlist 2,$(words $1),$1); do \
5a992d873084 Use a symlink for the manpage alias instead of a soelim stub
Guido Berhoerster <guido+sencrypt@berhoerster.name>
parents: 12
diff changeset
67 ln -sf $(notdir $(firstword $1)) $$$$alias; \
5a992d873084 Use a symlink for the manpage alias instead of a soelim stub
Guido Berhoerster <guido+sencrypt@berhoerster.name>
parents: 12
diff changeset
68 done
1
f0ceb0ad20e7 Add manpage
Guido Berhoerster <guido+sencrypt@berhoerster.name>
parents: 0
diff changeset
69 endef
0
73af139d1a94 Initial revision
Guido Berhoerster <guido+sencrypt@berhoerster.name>
parents:
diff changeset
70
73af139d1a94 Initial revision
Guido Berhoerster <guido+sencrypt@berhoerster.name>
parents:
diff changeset
71 DESTDIR ?=
73af139d1a94 Initial revision
Guido Berhoerster <guido+sencrypt@berhoerster.name>
parents:
diff changeset
72 prefix ?= /usr/local
73af139d1a94 Initial revision
Guido Berhoerster <guido+sencrypt@berhoerster.name>
parents:
diff changeset
73 bindir ?= $(prefix)/bin
73af139d1a94 Initial revision
Guido Berhoerster <guido+sencrypt@berhoerster.name>
parents:
diff changeset
74 datadir ?= $(prefix)/share
1
f0ceb0ad20e7 Add manpage
Guido Berhoerster <guido+sencrypt@berhoerster.name>
parents: 0
diff changeset
75 mandir ?= $(datadir)/man
0
73af139d1a94 Initial revision
Guido Berhoerster <guido+sencrypt@berhoerster.name>
parents:
diff changeset
76
12
14e58decdf87 Detect the OS and configure build flags and libraries automatically
Guido Berhoerster <guido+sencrypt@berhoerster.name>
parents: 11
diff changeset
77 OS_NAME := $(shell uname -s)
14e58decdf87 Detect the OS and configure build flags and libraries automatically
Guido Berhoerster <guido+sencrypt@berhoerster.name>
parents: 11
diff changeset
78 OS_RELEASE := $(shell uname -r)
14e58decdf87 Detect the OS and configure build flags and libraries automatically
Guido Berhoerster <guido+sencrypt@berhoerster.name>
parents: 11
diff changeset
79
14e58decdf87 Detect the OS and configure build flags and libraries automatically
Guido Berhoerster <guido+sencrypt@berhoerster.name>
parents: 11
diff changeset
80 ifneq ($(findstring $(OS_NAME),Linux FreeBSD DragonFly NetBSD OpenBSD),)
14e58decdf87 Detect the OS and configure build flags and libraries automatically
Guido Berhoerster <guido+sencrypt@berhoerster.name>
parents: 11
diff changeset
81 HAVE_ERR_H ?= 1
14e58decdf87 Detect the OS and configure build flags and libraries automatically
Guido Berhoerster <guido+sencrypt@berhoerster.name>
parents: 11
diff changeset
82 else ifeq ($(OS_NAME),SunOS)
14e58decdf87 Detect the OS and configure build flags and libraries automatically
Guido Berhoerster <guido+sencrypt@berhoerster.name>
parents: 11
diff changeset
83 ifeq ($(OS_RELEASE),5.10)
14e58decdf87 Detect the OS and configure build flags and libraries automatically
Guido Berhoerster <guido+sencrypt@berhoerster.name>
parents: 11
diff changeset
84 HAVE_ERR_H ?= 0
14e58decdf87 Detect the OS and configure build flags and libraries automatically
Guido Berhoerster <guido+sencrypt@berhoerster.name>
parents: 11
diff changeset
85 else
14e58decdf87 Detect the OS and configure build flags and libraries automatically
Guido Berhoerster <guido+sencrypt@berhoerster.name>
parents: 11
diff changeset
86 HAVE_ERR_H ?= 1
14e58decdf87 Detect the OS and configure build flags and libraries automatically
Guido Berhoerster <guido+sencrypt@berhoerster.name>
parents: 11
diff changeset
87 endif
17
b7309b030e8d Port to AIX
Guido Berhoerster <guido+sencrypt@berhoerster.name>
parents: 14
diff changeset
88 else ifeq ($(OS_NAME),AIX)
b7309b030e8d Port to AIX
Guido Berhoerster <guido+sencrypt@berhoerster.name>
parents: 14
diff changeset
89 HAVE_ERR_H ?= 0
12
14e58decdf87 Detect the OS and configure build flags and libraries automatically
Guido Berhoerster <guido+sencrypt@berhoerster.name>
parents: 11
diff changeset
90 endif
0
73af139d1a94 Initial revision
Guido Berhoerster <guido+sencrypt@berhoerster.name>
parents:
diff changeset
91
73af139d1a94 Initial revision
Guido Berhoerster <guido+sencrypt@berhoerster.name>
parents:
diff changeset
92 OBJS = sencrypt.o
13
5a992d873084 Use a symlink for the manpage alias instead of a soelim stub
Guido Berhoerster <guido+sencrypt@berhoerster.name>
parents: 12
diff changeset
93
1
f0ceb0ad20e7 Add manpage
Guido Berhoerster <guido+sencrypt@berhoerster.name>
parents: 0
diff changeset
94 MANPAGES = $(PACKAGE).1 $(DECRYPT_ALIAS).1
0
73af139d1a94 Initial revision
Guido Berhoerster <guido+sencrypt@berhoerster.name>
parents:
diff changeset
95
73af139d1a94 Initial revision
Guido Berhoerster <guido+sencrypt@berhoerster.name>
parents:
diff changeset
96 .DEFAULT_TARGET = all
73af139d1a94 Initial revision
Guido Berhoerster <guido+sencrypt@berhoerster.name>
parents:
diff changeset
97
73af139d1a94 Initial revision
Guido Berhoerster <guido+sencrypt@berhoerster.name>
parents:
diff changeset
98 .PHONY: all clean clobber dist install
73af139d1a94 Initial revision
Guido Berhoerster <guido+sencrypt@berhoerster.name>
parents:
diff changeset
99
12
14e58decdf87 Detect the OS and configure build flags and libraries automatically
Guido Berhoerster <guido+sencrypt@berhoerster.name>
parents: 11
diff changeset
100 all: $(PACKAGE) $(OBJS) $(MANPAGES)
0
73af139d1a94 Initial revision
Guido Berhoerster <guido+sencrypt@berhoerster.name>
parents:
diff changeset
101
12
14e58decdf87 Detect the OS and configure build flags and libraries automatically
Guido Berhoerster <guido+sencrypt@berhoerster.name>
parents: 11
diff changeset
102 $(PACKAGE): XCPPFLAGS = -D_XOPEN_SOURCE=600 -DOPENSSL_LOAD_CONF
14
a779ed022a87 Use correct headers and libraries under Solaris/Illumos
Guido Berhoerster <guido+sencrypt@berhoerster.name>
parents: 13
diff changeset
103 $(PACKAGE): XCFLAGS := $(shell getconf LFS_CFLAGS)
a779ed022a87 Use correct headers and libraries under Solaris/Illumos
Guido Berhoerster <guido+sencrypt@berhoerster.name>
parents: 13
diff changeset
104 $(PACKAGE): LDLIBS := -lcrypto
a779ed022a87 Use correct headers and libraries under Solaris/Illumos
Guido Berhoerster <guido+sencrypt@berhoerster.name>
parents: 13
diff changeset
105 $(PACKAGE): XLDFLAGS := $(shell getconf LFS_LDFLAGS)
0
73af139d1a94 Initial revision
Guido Berhoerster <guido+sencrypt@berhoerster.name>
parents:
diff changeset
106 ifeq ($(HAVE_ERR_H),1)
12
14e58decdf87 Detect the OS and configure build flags and libraries automatically
Guido Berhoerster <guido+sencrypt@berhoerster.name>
parents: 11
diff changeset
107 $(PACKAGE): XCPPFLAGS += -DHAVE_ERR_H
14e58decdf87 Detect the OS and configure build flags and libraries automatically
Guido Berhoerster <guido+sencrypt@berhoerster.name>
parents: 11
diff changeset
108 else
14e58decdf87 Detect the OS and configure build flags and libraries automatically
Guido Berhoerster <guido+sencrypt@berhoerster.name>
parents: 11
diff changeset
109 OBJS += err.o
0
73af139d1a94 Initial revision
Guido Berhoerster <guido+sencrypt@berhoerster.name>
parents:
diff changeset
110 endif
14
a779ed022a87 Use correct headers and libraries under Solaris/Illumos
Guido Berhoerster <guido+sencrypt@berhoerster.name>
parents: 13
diff changeset
111 ifeq ($(OS_NAME),SunOS)
a779ed022a87 Use correct headers and libraries under Solaris/Illumos
Guido Berhoerster <guido+sencrypt@berhoerster.name>
parents: 13
diff changeset
112 $(PACKAGE): XCPPFLAGS += -I/usr/xpg4/include
a779ed022a87 Use correct headers and libraries under Solaris/Illumos
Guido Berhoerster <guido+sencrypt@berhoerster.name>
parents: 13
diff changeset
113 $(PACKAGE): XLDFLAGS += -L/usr/xpg4/lib -R/usr/xpg4/lib
a779ed022a87 Use correct headers and libraries under Solaris/Illumos
Guido Berhoerster <guido+sencrypt@berhoerster.name>
parents: 13
diff changeset
114 endif
0
73af139d1a94 Initial revision
Guido Berhoerster <guido+sencrypt@berhoerster.name>
parents:
diff changeset
115 $(PACKAGE): $(OBJS)
73af139d1a94 Initial revision
Guido Berhoerster <guido+sencrypt@berhoerster.name>
parents:
diff changeset
116 $(LINK.o) $^ $(LDLIBS) -o $@
73af139d1a94 Initial revision
Guido Berhoerster <guido+sencrypt@berhoerster.name>
parents:
diff changeset
117
13
5a992d873084 Use a symlink for the manpage alias instead of a soelim stub
Guido Berhoerster <guido+sencrypt@berhoerster.name>
parents: 12
diff changeset
118 $(eval $(call generate-manpage-rule,$(MANPAGES)))
1
f0ceb0ad20e7 Add manpage
Guido Berhoerster <guido+sencrypt@berhoerster.name>
parents: 0
diff changeset
119
0
73af139d1a94 Initial revision
Guido Berhoerster <guido+sencrypt@berhoerster.name>
parents:
diff changeset
120 %.o: %.c
73af139d1a94 Initial revision
Guido Berhoerster <guido+sencrypt@berhoerster.name>
parents:
diff changeset
121 $(MAKEDEPEND.c) $< | $(SED) -f deps.sed >$*.d
73af139d1a94 Initial revision
Guido Berhoerster <guido+sencrypt@berhoerster.name>
parents:
diff changeset
122 $(COMPILE.c) -o $@ $<
73af139d1a94 Initial revision
Guido Berhoerster <guido+sencrypt@berhoerster.name>
parents:
diff changeset
123
73af139d1a94 Initial revision
Guido Berhoerster <guido+sencrypt@berhoerster.name>
parents:
diff changeset
124 install:
73af139d1a94 Initial revision
Guido Berhoerster <guido+sencrypt@berhoerster.name>
parents:
diff changeset
125 $(INSTALL.exec) $(PACKAGE) "$(DESTDIR)$(bindir)/$(PACKAGE)"
73af139d1a94 Initial revision
Guido Berhoerster <guido+sencrypt@berhoerster.name>
parents:
diff changeset
126 ln -f $(PACKAGE) "$(DESTDIR)$(bindir)/$(DECRYPT_ALIAS)"
1
f0ceb0ad20e7 Add manpage
Guido Berhoerster <guido+sencrypt@berhoerster.name>
parents: 0
diff changeset
127 for manpage in $(MANPAGES); do \
13
5a992d873084 Use a symlink for the manpage alias instead of a soelim stub
Guido Berhoerster <guido+sencrypt@berhoerster.name>
parents: 12
diff changeset
128 if [ -L $${manpage} ]; then \
5a992d873084 Use a symlink for the manpage alias instead of a soelim stub
Guido Berhoerster <guido+sencrypt@berhoerster.name>
parents: 12
diff changeset
129 $(INSTALL.link) $${manpage} \
5a992d873084 Use a symlink for the manpage alias instead of a soelim stub
Guido Berhoerster <guido+sencrypt@berhoerster.name>
parents: 12
diff changeset
130 "$(DESTDIR)$(mandir)/man$${manpage##*.}/$${manpage##*/}"; \
5a992d873084 Use a symlink for the manpage alias instead of a soelim stub
Guido Berhoerster <guido+sencrypt@berhoerster.name>
parents: 12
diff changeset
131 else \
5a992d873084 Use a symlink for the manpage alias instead of a soelim stub
Guido Berhoerster <guido+sencrypt@berhoerster.name>
parents: 12
diff changeset
132 $(INSTALL.data) $${manpage} \
5a992d873084 Use a symlink for the manpage alias instead of a soelim stub
Guido Berhoerster <guido+sencrypt@berhoerster.name>
parents: 12
diff changeset
133 "$(DESTDIR)$(mandir)/man$${manpage##*.}/$${manpage##*/}"; \
5a992d873084 Use a symlink for the manpage alias instead of a soelim stub
Guido Berhoerster <guido+sencrypt@berhoerster.name>
parents: 12
diff changeset
134 fi \
1
f0ceb0ad20e7 Add manpage
Guido Berhoerster <guido+sencrypt@berhoerster.name>
parents: 0
diff changeset
135 done
0
73af139d1a94 Initial revision
Guido Berhoerster <guido+sencrypt@berhoerster.name>
parents:
diff changeset
136
73af139d1a94 Initial revision
Guido Berhoerster <guido+sencrypt@berhoerster.name>
parents:
diff changeset
137 clean:
1
f0ceb0ad20e7 Add manpage
Guido Berhoerster <guido+sencrypt@berhoerster.name>
parents: 0
diff changeset
138 rm -f $(PACKAGE) $(OBJS) $(MANPAGES)
0
73af139d1a94 Initial revision
Guido Berhoerster <guido+sencrypt@berhoerster.name>
parents:
diff changeset
139
73af139d1a94 Initial revision
Guido Berhoerster <guido+sencrypt@berhoerster.name>
parents:
diff changeset
140 clobber: clean
73af139d1a94 Initial revision
Guido Berhoerster <guido+sencrypt@berhoerster.name>
parents:
diff changeset
141 rm -f $(patsubst %.o,%.d,$(OBJS))
73af139d1a94 Initial revision
Guido Berhoerster <guido+sencrypt@berhoerster.name>
parents:
diff changeset
142
73af139d1a94 Initial revision
Guido Berhoerster <guido+sencrypt@berhoerster.name>
parents:
diff changeset
143 dist: clobber
73af139d1a94 Initial revision
Guido Berhoerster <guido+sencrypt@berhoerster.name>
parents:
diff changeset
144 $(PAX) -w -x ustar -s ',.*/\..*,,' -s ',./[^/]*\.tar\.gz,,' \
11
27bc2d4947da Exclude "." from tarballs
Guido Berhoerster <guido+sencrypt@berhoerster.name>
parents: 7
diff changeset
145 -s ',^\.$$,,' -s ',\./,$(DISTNAME)/,' . | \
27bc2d4947da Exclude "." from tarballs
Guido Berhoerster <guido+sencrypt@berhoerster.name>
parents: 7
diff changeset
146 $(GZIP) > $(DISTNAME).tar.gz
0
73af139d1a94 Initial revision
Guido Berhoerster <guido+sencrypt@berhoerster.name>
parents:
diff changeset
147
19
0bd16b428fc0 Allow local makefile overrides in local.mk
Guido Berhoerster <guido+sencrypt@berhoerster.name>
parents: 17
diff changeset
148 -include local.mk
0bd16b428fc0 Allow local makefile overrides in local.mk
Guido Berhoerster <guido+sencrypt@berhoerster.name>
parents: 17
diff changeset
149
0
73af139d1a94 Initial revision
Guido Berhoerster <guido+sencrypt@berhoerster.name>
parents:
diff changeset
150 -include $(patsubst %.o,%.d,$(OBJS))