File: Makefile

package info (click to toggle)
manpages-pt 20040726-2
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k, lenny
  • size: 2,976 kB
  • ctags: 3
  • sloc: makefile: 33
file content (21 lines) | stat: -rw-r--r-- 603 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# Do "make install" to copy the pages to their destination.
# Do "make gz" before "make install" if you use compressed source pages.
# Do "make remove" before "make gz" if you may have uncompressed
# source pages around.

MANDIR=$(DESTDIR)/usr/share/man/pt/

example: remove gz install

remove:
	for i in man?; do for j in $$i/*; do rm -f $(MANDIR)/$$i/$$j; done; done

gz:
	for i in man?; do gzip $$i/*; done

install:
	test ! -d $(MANDIR) || install -d -m 755 $(MANDIR)
	for i in man?; do \
		test ! -d $(MANDIR)/$$i || install -d -m 755 $(MANDIR)/$$i; \
		install -m 644 $$i/* $(MANDIR)/$$i; \
	done