xca/misc/Makefile
Christian Hohnstaedt f61c2096d4 Close #136 Provide 64bit version of xca
QT precompiled libraries now (5.12.0) support mingw 64bit
and also qsqlmysql.dll

Improve configure for windows
Drop configure.w32
2020-01-10 21:31:05 +01:00

45 lines
1.2 KiB
Makefile

SRCPATH=$(VPATH)/
ifeq ($(TOPDIR),)
TOPDIR=..
BUILD=..
endif
include $(TOPDIR)/Rules.mak
CONFIG_OBJ = dn.txt oids.txt eku.txt
misc all: $(CONFIG_OBJ)
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
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
if test -z "$(destdir)"; then \
update-mime-database $(datarootdir)/mime || :; \
update-desktop-database || :; \
fi
app: Info.plist
mkdir -p $(APPDIR)/Resources
install -m 644 $^ $(SRCPATH)PkgInfo $(APPDIR)
install -m 644 $(CONFIG_OBJ) $(SRCPATH)*.xca $(APPDIR)/Resources