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
))
15 ifneq ($(filter rpm
,$(PKGFORMAT
)),)
16 $(eval
$(call gb_CustomTarget_register_targets
,setup_native
/scripts
,\
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
$^
$@
32 $(scripts_WORKDIR
)/uninstall: $(SRCDIR
)/setup_native
/scripts
/uninstall_linux.sh
33 cat
$< | tr
-d
"\015" > $@
38 # vim: set noet sw=4 ts=4: