File: Makefile

package info (click to toggle)
mtpaint 3.50.13-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 5,344 kB
  • sloc: ansic: 57,311; sh: 3,372; makefile: 83; perl: 61
file content (27 lines) | stat: -rw-r--r-- 713 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
24
25
26
27
include ../_conf.txt

MAN_PAGE=mtpaint.1

all: $(MAN_PAGE)

$(MAN_PAGE): mtpaint.pod
	pod2man "--release=$(MT_VERSION)" "--date=$(MT_DATE)" "--center=Mark Tyler's Painting Program" mtpaint.pod > $(MAN_PAGE)

html: vcode.html

%.html: %.t2t
	txt2tags -t html $*.t2t

install:
	mkdir -p $(DESTDIR)$(MT_MAN_DEST)/man1 $(DESTDIR)$(MT_DATAROOT)/applications $(DESTDIR)$(MT_DATAROOT)/pixmaps
	cp $(MAN_PAGE) $(DESTDIR)$(MT_MAN_DEST)/man1
	cp mtpaint.desktop $(DESTDIR)$(MT_DATAROOT)/applications
	cp mtpaint.png $(DESTDIR)$(MT_DATAROOT)/pixmaps

uninstall:
	rm $(DESTDIR)$(MT_MAN_DEST)/man1/$(MAN_PAGE)
	rm $(DESTDIR)$(MT_DATAROOT)/applications/mtpaint.desktop
	rm $(DESTDIR)$(MT_DATAROOT)/pixmaps/mtpaint.png

clean: