File: Makefile

package info (click to toggle)
dh-rebar 0.0.4
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, jessie, jessie-kfreebsd, sid, stretch
  • size: 72 kB
  • ctags: 11
  • sloc: makefile: 161; perl: 45
file content (23 lines) | stat: -rw-r--r-- 719 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
DH_REBAR_DIR=usr/share/dh-rebar/
DH_DIR=usr/share/perl5/Debian/Debhelper/

build: man/dh_rebar.1
clean:
	rm -rf man

install:
	mkdir -p $(DESTDIR)/$(DH_REBAR_DIR)/template/
	mkdir -p $(DESTDIR)/$(DH_REBAR_DIR)/make/
	mkdir -p $(DESTDIR)/$(DH_DIR)/Buildsystem/
	mkdir -p $(DESTDIR)/$(DH_DIR)/Sequence/
	mkdir -p $(DESTDIR)/usr/bin/
	cp template/* $(DESTDIR)/$(DH_REBAR_DIR)/template/
	cp make/* $(DESTDIR)/$(DH_REBAR_DIR)/make/
	cp debhelper7/Buildsystem/* $(DESTDIR)/$(DH_DIR)/Buildsystem/
	cp debhelper7/Sequence/* $(DESTDIR)/$(DH_DIR)/Sequence/
	cp bin/dh_rebar $(DESTDIR)/usr/bin/

man/dh_rebar.1: bin/dh_rebar
	@if [ ! -d man ] ; then mkdir man; fi
	pod2man -c "dh_rebar" -r "dh_rebar" bin/dh_rebar man/dh_rebar.1