File: Makefile

package info (click to toggle)
hp-search-mac 0.1.4
  • links: PTS
  • area: main
  • in suites: bullseye, buster, sid, stretch
  • size: 88 kB
  • ctags: 16
  • sloc: perl: 267; makefile: 22
file content (25 lines) | stat: -rw-r--r-- 500 bytes parent folder | download | duplicates (3)
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
all:
	for PL in *.pl ; do \
		pod2man --section=1 \
			--release=" hp-search-mac " \
			--date="`LANG=C date`" \
			$$PL > $$(echo $$PL | sed -e "s|.pl|.1|;") ;\
		gzip -9 $$(echo $$PL | sed -e "s|.pl|.1|;") \
	; done

install: install-bin install-man

install-bin:
	cp hp-search-mac.pl $(DESTDIR)/usr/bin/hp-search-mac

install-man:
	mkdir -p $(DESTDIR)/usr/share/man/man1
	for M1 in *.1.gz ; do \
		cp $$M1 $(DESTDIR)/usr/share/man/man1 \
	; done

clean: clean-man

clean-man:
	-rm *.1
	-rm *.1.gz