-
Notifications
You must be signed in to change notification settings - Fork 91
/
Makefile
36 lines (28 loc) · 1.02 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
PREFIX := /usr
PROGRAMS := scripts/* tap/*
build:
tests/increase-version-number
install: $(scripts)
mkdir -p $(DESTDIR)/$(PREFIX)/bin/
for prog in $(PROGRAMS); do \
install -m 0755 $$prog $(DESTDIR)/$(PREFIX)/bin; \
done
mkdir -p $(DESTDIR)/usr/share/jenkins-debian-glue/examples/
install -m 0664 examples/* $(DESTDIR)/usr/share/jenkins-debian-glue/examples/
mkdir -p $(DESTDIR)/usr/share/jenkins-debian-glue/pbuilder-hookdir/
install -m 0775 pbuilder-hookdir/* $(DESTDIR)/usr/share/jenkins-debian-glue/pbuilder-hookdir/
uninstall: $(scripts)
for prog in $(PROGRAMS); do \
rm $(DESTDIR)/$(PREFIX)/bin/$${prog#scripts} ; \
done
rm -rf $(DESTDIR)/usr/share/jenkins-debian-glue/examples
rmdir --ignore-fail-on-non-empty $(DESTDIR)/usr/share/jenkins-debian-glue
deploy:
fab all
clean:
rm -f fabfile.pyc
# avoid recursion via debian/rules clean, so manually rm:
rm -f debian/files debian/jenkins-debian-glue.debhelper.log
rm -f debian/jenkins-debian-glue.substvars
rm -rf debian/jenkins-debian-glue/
.PHONY: build install