Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:neofoxx
binutils-mipsel-elf
debian.rules
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File debian.rules of Package binutils-mipsel-elf
#!/usr/bin/make -f # See debhelper(7) (uncomment to enable) # output every command that modifies files on the build system. export DH_VERBOSE = 1 TARGET=mipsel-elf PACKAGE=binutils-$(TARGET) # As opposed to /usr/local PREFIX=/usr BUILD_DIR=build-binutils # https://www.debian.org/doc/debian-policy/ch-source.html#s-debianrules-options ifneq (,$(filter parallel=%,$(DEB_BUILD_OPTIONS))) NUMJOBS = $(patsubst parallel=%,%,$(filter parallel=%,$(DEB_BUILD_OPTIONS))) endif prep: mkdir -p $(BUILD_DIR) if [ ! -f $(BUILD_DIR)/config.status ]{; then\ cd $(BUILD_DIR);\ ../configure --target=$(TARGET) --prefix=$(PREFIX);\ fi build: prep $(MAKE) -C $(BUILD_DIR) all -j$(NUMJOBS) build-arch: build build-indep: build install: dh_testdir dh_testroot dh_installdirs #cd $(BUILD_DIR);\ #mkdir $(CURDIR)/debian/tmp $(MAKE) -C $(BUILD_DIR) DESTDIR=$(CURDIR)/debian/$(PACKAGE) install # TODO check what to do with files in $(DESTDIR)/usr/share/...? rm -rf $(CURDIR)/debian/$(PACKAGE)$(PREFIX)/share/locale rm -rf $(CURDIR)/debian/$(PACKAGE)$(PREFIX)/share/info rm -rf $(CURDIR)/debian/$(PACKAGE)$(PREFIX)/share/man/man1 rm -rf $(CURDIR)/debian/$(PACKAGE)$(PREFIX)/share/man rm -rf $(CURDIR)/debian/$(PACKAGE)$(PREFIX)/share binary-arch: build install echo "Running $@" # Proper magic. dh_testdir -a dh_testroot -a dh_installdocs -a dh_installchangelogs -a dh_strip -a dh_compress -a dh_fixperms -a dh_installdeb -a dh_shlibdeps -a dh_gencontrol -a dh_md5sums -a dh_builddeb -a binary-indep: build install echo "Running $@" binary: binary-indep binary-arch echo "Running $@" clean: if [ -f $(BUILD_DIR)/Makefile ]{; then\ $(MAKE) -C $(BUILD_DIR) clean;\ fi rm -Rf $(BUILD_DIR) #Else %: echo "Trying to run something unsupported: $@" sleep 20 dh $@
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor