aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile.am
diff options
context:
space:
mode:
authorJason Woodward2005-02-20 19:36:11 +0000
committerJason Woodward2005-02-20 19:36:11 +0000
commitf3a61dde2f87755639636c6a1ec869d4981e2f46 (patch)
tree2ccf7172dfb85bf1edfcb93e7737470288668536 /Makefile.am
parent21df12d7e0ca2c6693cb26c821250a01df6ef10e (diff)
downloadgslapt-f3a61dde2f87755639636c6a1ec869d4981e2f46.tar.gz
added slackpkg make target to Makefile.am
Diffstat (limited to 'Makefile.am')
-rw-r--r--Makefile.am11
1 files changed, 9 insertions, 2 deletions
diff --git a/Makefile.am b/Makefile.am
index 2be38ff..52a31ac 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -1,6 +1,7 @@
## Process this file with automake to produce Makefile.in
SUBDIRS = src po
+SLACKPKGBUILDIR=/tmp/gslapt_build_dir
EXTRA_DIST = \
autogen.sh \
@@ -34,5 +35,11 @@ dist-hook:
done \
fi
-makepkg:
- @$(NORMAL_INSTALL)
+slackpkg: all
+ @make install DESTDIR=$(SLACKPKGBUILDIR)
+ cp slack-desc $(SLACKPKGBUILDIR)
+ cp slack-required $(SLACKPKGBUILDIR)
+ chown root:bin $(SLACKPKGBUILDIR)/$(sbindir)
+ chown root:bin $(SLACKPKGBUILDIR)/$(sbindir)/@PACKAGE@
+ ( cd $(SLACKPKGBUILDIR) && /sbin/makepkg -l y -c n @PACKAGE@-@VERSION@-i386-1.tgz )
+