forked from freebsd/pkg
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile.in
More file actions
47 lines (39 loc) · 1.38 KB
/
Copy pathMakefile.in
File metadata and controls
47 lines (39 loc) · 1.38 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
include @builddir@/mk/defs.mk
.SUFFIXES: .in
.in:
sed -e 's|%prefix%|$(PREFIX)|g' $< > $@
pdailydir= $(sysconfdir)/periodic/daily
psecuritydir= $(sysconfdir)/periodic/security
pweeklydir= $(sysconfdir)/periodic/weekly
bashcompdir= $(sysconfdir)/bash_completion.d
zshcompdir= $(PREFIX)/share/zsh/site-functions
PDAILY= periodic/411.pkg-backup \
periodic/490.status-pkg-changes
PSECURITY= periodic/410.pkg-audit \
periodic/405.pkg-base-audit \
periodic/460.pkg-checksum \
periodic/470.pkg-dependencies
PWEEKLY= periodic/400.status-pkg
COMPLETION= completion/_pkg \
completion/_pkg.bash
VPATH= $(top_srcdir)/scripts
all: $(PDAILY) $(PSECURITY) $(PWEEKLY) $(COMPLETION)
clean:
rm -f $(PDAILY) $(PSECURITY) $(PWEEKLY)
install: $(PDAILY) $(PSECURITY) $(PWEEKLY) $(COMPLETION)
install -d -m 755 $(DESTDIR)$(pdailydir)
install -d -m 755 $(DESTDIR)$(pweeklydir)
install -d -m 755 $(DESTDIR)$(psecuritydir)
install -d -m 755 $(DESTDIR)$(bashcompdir)
install -d -m 755 $(DESTDIR)$(zshcompdir)
for script in $(PDAILY); do \
install -m 755 $$script $(DESTDIR)$(pdailydir)/ ; \
done
for script in $(PSECURITY); do \
install -m 755 $$script $(DESTDIR)$(psecuritydir)/ ; \
done
for script in $(PWEEKLY); do \
install -m 755 $$script $(DESTDIR)$(pweeklydir)/ ; \
done
install -m 644 completion/_pkg.bash $(DESTDIR)$(bashcompdir)/
install -m 644 completion/_pkg $(DESTDIR)$(zshcompdir)/