File: Makefile

package info (click to toggle)
cevomapgen 39.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 476 kB
  • sloc: pascal: 2,766; xml: 181; makefile: 50
file content (43 lines) | stat: -rw-r--r-- 1,491 bytes parent folder | download
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
31
32
33
34
35
36
37
38
39
40
41
42
43
# Makefile for cevomapgen
# Copyright : 2024-2026 P Blackman
# License   : GPLv3+

.NOTPARALLEL:

HOME=tmphome

bindir    ?= bin
docdir    ?= cevomapgen
widgetset ?= qt6

all : cevomapgen cevomapcheck cevomapgencli

cevomapgen : fpc.cfg CevoMapGen.* *.pas *.pp *.lfm
	mkdir -p tmphome
	lazbuild --ws=$(widgetset) -B $(LAZDIR) CevoMapGen.lpi

cevomapcheck: fpc.cfg CevoMapCheck.pas
	fpc -ocevomapcheck CevoMapCheck

cevomapgencli: fpc.cfg CevoMapGenCLI.pas
	fpc -ocevomapgencli CevoMapGenCLI

install:
	install -p -Dm 755 cevomapgen                   -t "$(DESTDIR)$(prefix)/$(bindir)"
	install -p -Dm 755 cevomapcheck                 -t "$(DESTDIR)$(prefix)/$(bindir)"
	install -p -Dm 755 cevomapgencli                -t "$(DESTDIR)$(prefix)/$(bindir)"

	install -p -Dm 644 Desktop/cevomapgen.svg       -t "$(DESTDIR)$(prefix)/share/icons/hicolor/scalable/apps"
	install -p -Dm 644 Desktop/*.cevomapgen.desktop -t "$(DESTDIR)$(prefix)/share/applications"
	install -p -Dm 644 Templates/*.INI              -t "$(DESTDIR)$(prefix)/share/cevomapgen/Templates"
	install -p -Dm 644 Docs/*.html                  -t "$(DESTDIR)$(prefix)/share/doc/$(docdir)"
	install -p -Dm 644 Docs/changelog               -t "$(DESTDIR)$(prefix)/share/doc/$(docdir)"
	install -p -Dm 644 ManPages/*.6                 -t "$(DESTDIR)$(prefix)/share/man/man6"
	install -p -Dm 644 *.cevomapgen.*.xml           -t "$(DESTDIR)$(prefix)/share/metainfo"

clean:
	-rm -fr lib
	-rm -fr tmphome
	-rm *.o
	-rm *.ppu
	-rm *.res