diff options
Diffstat (limited to 'build')
-rwxr-xr-x | build | 34 |
1 files changed, 11 insertions, 23 deletions
@@ -1,26 +1,14 @@ -#! /usr/bin/make -f +#!/usr/bin/make -f -VER = 1.0 -PKGS = opkhelper-$(VER) opkhelper-$(VER)-doc +include ../source.mk -$(PKGS): opkhelper.buildstamp +build: + oh-autoconfigure -- \ + --bindir=/usr/share/$(OPK_SOURCE) \ + --libdir=/usr/share \ + --with-libopkbuild.1=/usr/share/libopkbuild.1 + oh-autobuild -.SILENT: opkhelper.buildstamp -opkhelper.buildstamp: - mkdir build && cd build && \ - ../src/configure --prefix=/usr --libdir=/usr/share && \ - make && make DESTDIR=$$(pwd)/../dest install - mv dest/usr/share/opkhelper dest/usr/share/opkhelper-$(VER) - for file in dest/usr/bin/*; do \ - basename="$${file##*/}"; \ - mv "$${file}" "$${file}-$(VER)"; \ - done - for file in dest/usr/share/man/man*/*; do \ - basename="$${file##*/}"; \ - mv "$${file}" "$${file%.*}-$(VER).$${basename##*.}"; \ - done - oh-installfiles $(PKGS) - oh-installdocs opkhelper-$(VER) - oh-gencontrol $(PKGS) - oh-buildopk $(PKGS) - touch $@ +install: build + oh-autoinstall + oh-installfiles |