File: Imakefile

package info (click to toggle)
xtitle 1.0.2-3
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 144 kB
  • ctags: 7
  • sloc: sh: 152; makefile: 33
file content (30 lines) | stat: -rw-r--r-- 692 bytes parent folder | download | duplicates (5)
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
PROGRAM = xtitle

all:: $(PROGRAM)

$(PROGRAM):
	$(RM) $(PROGRAM)
	cat < $(PROGRAM).sh > $(PROGRAM)
	chmod a+rx $(PROGRAM)

InstallProgram($(PROGRAM),$(BINDIR))
InstallManPage($(PROGRAM),$(MANDIR))

clean::
	$(RM) $(PROGRAM)

# -----------------------------------------------------------------------
# for maintainer use only

import:
	$(CP) $(HOME)/binp/$(PROGRAM) $(PROGRAM).sh
	$(CP) $(HOME)/manp/man1/$(PROGRAM).1 $(PROGRAM).man
	$(CP) $(HOME)/manp/man1/$(PROGRAM).html .

dist:
	VER=`sed -n 's/^version=\([^ 	]*\).*/\1/p' $(PROGRAM).sh | tail -1`;\
	BASE=$(PROGRAM)-$$VER;\
	$(RM) ../$$BASE.tgz;\
	$(CP) -r ../src ../$$BASE;\
	$(RM) ../$$BASE/Makefile*;\
	z -gz -s .tgz -m 644 ../$$BASE