lokdialog: Convert the Format -> Paragraph... dialog to async exec.
[LibreOffice.git] / setup_native / CustomTarget_scripts.mk
blob5a50a69b4e36d18a0557c147fc1a1a5f8ba7ee13
1 # -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*-
3 # This file is part of the LibreOffice project.
5 # This Source Code Form is subject to the terms of the Mozilla Public
6 # License, v. 2.0. If a copy of the MPL was not distributed with this
7 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
10 scripts_WORKDIR :=$(call gb_CustomTarget_get_workdir,setup_native/scripts)
12 $(eval $(call gb_CustomTarget_CustomTarget,setup_native/scripts))
14 ifeq ($(OS),LINUX)
15 ifneq ($(filter rpm,$(PKGFORMAT)),)
16 $(eval $(call gb_CustomTarget_register_targets,setup_native/scripts,\
17 install \
18 uninstall \
19 noarch/fake-db-1.0-0.noarch.rpm \
22 $(scripts_WORKDIR)/noarch/fake-db-1.0-0.noarch.rpm: $(SRCDIR)/setup_native/scripts/fake-db.spec
23 mkdir -p $(scripts_WORKDIR)/fake-db-root
24 $(RPM) --define "_builddir $(scripts_WORKDIR)/fake-db-root" \
25 --define "_rpmdir $(scripts_WORKDIR)" -bb $<
26 chmod g+w $(scripts_WORKDIR)/fake-db-root
28 $(scripts_WORKDIR)/install: $(SRCDIR)/setup_native/scripts/install_linux.sh $(scripts_WORKDIR)/noarch/fake-db-1.0-0.noarch.rpm
29 $(PERL) -w $(SRCDIR)/setup_native/scripts/install_create.pl $^ $@
30 chmod 775 $@
32 $(scripts_WORKDIR)/uninstall: $(SRCDIR)/setup_native/scripts/uninstall_linux.sh
33 cat $< | tr -d "\015" > $@
34 chmod 775 $@
35 endif
36 endif
38 ifeq ($(OS),SOLARIS)
39 $(eval $(call gb_CustomTarget_register_targets,setup_native/scripts,\
40 install \
41 uninstall \
42 getuid.so.stripped \
45 $(scripts_WORKDIR)/getuid.so.stripped: $(call gb_Library_get_target,getuid)
46 cp $< $@
47 /usr/ccs/bin/strip $@
49 $(scripts_WORKDIR)/install: $(SRCDIR)/setup_native/scripts/install_solaris.sh $(scripts_WORKDIR)/getuid.so.stripped
50 $(PERL) -w $(SRCDIR)/setup_native/scripts/install_create.pl $^ $@
51 chmod 775 $@
53 $(scripts_WORKDIR)/uninstall: $(SRCDIR)/setup_native/scripts/uninstall_solaris.sh $(scripts_WORKDIR)/getuid.so.stripped
54 $(PERL) -w $(SRCDIR)/setup_native/scripts/install_create.pl $^ $@
55 chmod 775 $@
56 endif
58 # vim: set noet sw=4 ts=4: