File: Makefile

package info (click to toggle)
xca 2.9.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 8,328 kB
  • sloc: cpp: 30,584; sh: 341; xml: 74; makefile: 56; python: 34
file content (47 lines) | stat: -rw-r--r-- 1,450 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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47

SRCPATH=$(VPATH)/
ifeq ($(TOPDIR),)
TOPDIR=..
BUILD=..
endif

include $(TOPDIR)/Rules.mak

CONFIG_OBJ = dn.txt oids.txt eku.txt
INSTALLS = Info.plist xca.completion xca.desktop xca.xml

.install-stamp all: $(CONFIG_OBJ)
.install-stamp: $(INSTALLS)

MSG := \# Do not edit this file, rather use

%.txt: preamble.txt %.text
	@$(PRINT) "  GEN    [$(BASENAME)] $@"
ifeq ($(HOST), WINDOWS)
	(echo "$(MSG) PROFILE\Application Data\xca\$@" && cat $^) | sed 's/$$/\r/' > $@
else ifeq ($(HOST), DARWIN)
	(echo "$(MSG) HOME/Library/Application Support/data/xca/$@" && cat $^) > $@
else
	(echo "$(MSG) /etc/xca/$@ or HOME/.xca/$@" && cat $^) > $@
endif


install:
	install -m 755 -d $(DESTDIR)$(xca_prefix) \
		$(DESTDIR)$(datarootdir)/applications \
		$(DESTDIR)$(datarootdir)/mime/packages \
		$(DESTDIR)$(datarootdir)/bash-completion/completions
	install -m 644 $(CONFIG_OBJ) $(SRCPATH)*.xca \
			$(DESTDIR)$(xca_prefix)
	install -m 644 $(SRCPATH)xca.desktop $(DESTDIR)$(datarootdir)/applications
	install -m 644 $(SRCPATH)xca.xml $(DESTDIR)$(datarootdir)/mime/packages
	install -m 644 $(SRCPATH)xca.completion $(DESTDIR)$(datarootdir)/bash-completion/completions/xca
	if test -z "$(DESTDIR)"; then \
	  update-mime-database $(datarootdir)/mime || :; \
	  update-desktop-database || :; \
	fi
app: Info.plist PkgInfo | $(CONFIG_OBJ)
	mkdir -p $(APPDIR)/Resources
	install -m 644 $^ $(APPDIR)
	install -m 644 $(CONFIG_OBJ) $(SRCPATH)*.xca $(APPDIR)/Resources