forked from ossobv/vcutil
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
78 lines (69 loc) · 1.6 KB
/
Makefile
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
HASHES = $(wildcard *.hash)
DESTDIR =
PREFIX ?= /usr/local
BINDIR = $(PREFIX)/bin
SYSCONFDIR = /etc
BINS = \
asterisk-gitlog-find \
bson2json \
censored-for-email \
cert-expiry-check \
cert-expiry-finder \
dbschemadiff \
difftac \
easycert \
filespeed \
gitbackhub \
git-hook-postcommit-coloremail \
gitlab-hook-postcommit-coloremail \
indirect-scp \
linux-kernel-autoremove \
mysql2csv \
psdiff \
pve-macaddr-security \
salt-highstate-pp \
svn-diff \
svn-hook-postcommit-coloremail \
svn-merge-msg \
svn-show-mergable \
svn-status \
tls-sniff-ciphers \
udiff \
uwsgi-list \
uwsgi-kill \
venvpatch \
wcheckrestart \
wdiffcount \
wgrep \
wtimediff \
wtimestamp \
wtrunc
OTHER = \
Makefile \
README.md \
gitlab-hook-postcommit-coloremail.example \
psdiff.hash \
psdiff.rst \
tcpdump247 \
tcpdump247.default \
udiff.selftest \
wsvreader.py
.PHONY: all deb hashes make_has_all_files
all: hashes make_has_all_files
deb:
dpkg-buildpackage -us -uc -sa
install:
install -d $(DESTDIR)$(BINDIR)
install $(BINS) $(DESTDIR)$(BINDIR)
#install -D -T tcpdump247 $(DESTDIR)$(SYSCONFDIR)/init.d/tcpdump247
#install -m0600 -D -T tcpdump247.default $(DESTDIR)$(SYSCONFDIR)/default/tcpdump247
# salt.states.file.managed likes to have hashes to download, to check
# whether it has the newest version. See:
# https://docs.saltstack.com/en/latest/ref/states/all/
# salt.states.file.html#salt.states.file.managed
hashes: $(HASHES)
make_has_all_files:
@bash -c "diff -pu <(git ls-files | grep -vF / | sort -V) \
<(echo $(BINS) $(OTHER) | tr ' ' '\n' | sort -V)"
%.hash: % Makefile
sha256sum $< > $@