equal
deleted
inserted
replaced
1 DESTDIR = |
1 DESTDIR = |
2 |
2 |
3 package = wgnd-watch |
3 package = wgnd-watch |
4 prefix ?= /usr/local |
4 prefix ?= /usr/local |
|
5 datarootdir = $(prefix)/share |
5 sbindir = $(prefix)/sbin |
6 sbindir = $(prefix)/sbin |
6 docdir = $(prefix)/share/doc/$(package) |
7 docdir = $(datarootdir)/doc/$(package) |
|
8 mandir = $(datarootdir)/man |
7 sbinscripts = $(package) |
9 sbinscripts = $(package) |
8 |
10 |
9 %: %.pl |
11 %: %.pl |
10 cp -a $< $@ |
12 cp -a $< $@ |
|
13 %.1: %.pl |
|
14 pod2man $< $@ |
11 |
15 |
12 all: $(scripts) |
16 all: $(package) $(package).1 |
13 |
17 |
14 install: all |
18 install: all |
15 install -m 0755 -d $(DESTDIR)$(sbindir) |
19 install -m 0755 -d $(DESTDIR)$(sbindir) |
16 install -m 0755 $(sbinscripts) $(DESTDIR)$(sbindir) |
20 install -m 0755 $(sbinscripts) $(DESTDIR)$(sbindir) |
17 install -m 0755 -d $(DESTDIR)$(docdir) |
21 install -m 0755 -d $(DESTDIR)$(docdir) |
18 install -m 0755 $(package).map.pl.ex $(DESTDIR)$(docdir) |
22 install -m 0755 $(package).map.pl.ex $(DESTDIR)$(docdir) |
|
23 install -m 0755 -d $(DESTDIR)$(mandir)/man1 |
|
24 install -m 0755 $(package).1 $(DESTDIR)$(mandir)/man1 |
19 |
25 |
20 clean: |
26 clean: |
21 -rm -f $(scripts) |
27 -rm -f $(package) $(package).1 |