aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJason Woodward2009-04-29 04:19:30 +0000
committerJason Woodward2009-04-29 04:19:30 +0000
commit1575589db6d45de5a28937fa85cdffc26f99c62d (patch)
tree8baeb325f1659b8cce9bc1fe40299c6fb5f339a8
parentb391cd94c46dd87aa4e63ed8d1aa8111365b8223 (diff)
downloadslapt-get-1575589db6d45de5a28937fa85cdffc26f99c62d.tar.gz
updated makefile for building the slapt-get package
-rw-r--r--ChangeLog1
-rw-r--r--Makefile13
2 files changed, 8 insertions, 6 deletions
diff --git a/ChangeLog b/ChangeLog
index 72277dc..3dd49cb 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,6 @@
0.10.1a Apr 27, 2009
+ * updated makefile for building the slapt-get package
* updated MD5 parsing to accept new slackware MD5SUM metadata
in /var/log/packages entries
* disabled file size check since slack PACKAGES.TXT sizes
diff --git a/Makefile b/Makefile
index ac4118d..9f743b7 100644
--- a/Makefile
+++ b/Makefile
@@ -113,6 +113,7 @@ clean: testclean
-if [ -f libs ]; then rm -rf libs ;fi
+.PHONY: pkg dopkg
pkg: $(PACKAGE) dopkg
staticpkg: static dopkg
@@ -120,7 +121,7 @@ staticpkg: static dopkg
withlibslaptpkg: withlibslapt dopkg
dopkg:
- mkdir pkg
+ mkdir -p pkg
mkdir -p pkg/$(SBINDIR)
mkdir -p pkg/etc/slapt-get
mkdir -p pkg/install
@@ -144,17 +145,17 @@ dopkg:
cp doc/libslapt.3 pkg/usr/man/man3/
cp doc/$(PACKAGE).ru.8 pkg/usr/man/ru/man8/$(PACKAGE).8
cp doc/$(PACKAGE).uk.8 pkg/usr/man/uk/man8/$(PACKAGE).8
- gzip pkg/usr/man/man8/$(PACKAGE).8
- gzip pkg/usr/man/man3/libslapt.3
- gzip pkg/usr/man/ru/man8/$(PACKAGE).8
- gzip pkg/usr/man/uk/man8/$(PACKAGE).8
+ gzip -f pkg/usr/man/man8/$(PACKAGE).8
+ gzip -f pkg/usr/man/man3/libslapt.3
+ gzip -f pkg/usr/man/ru/man8/$(PACKAGE).8
+ gzip -f pkg/usr/man/uk/man8/$(PACKAGE).8
mkdir -p pkg$(LIBDIR)
mkdir -p pkg/usr/include
cp src/slapt.h pkg/usr/include/
cp src/libslapt.a src/libslapt.so.$(VERSION) pkg$(LIBDIR)/
strip pkg$(LIBDIR)/libslapt.so.$(VERSION)
( cd pkg$(LIBDIR); ln -s libslapt.so.$(VERSION) libslapt.so )
- -( cd pkg; /sbin/makepkg -l y -c n $(PACKAGE)-$(VERSION)-$(ARCH)-$(RELEASE).tgz )
+ -( cd pkg; /sbin/makepkg -l y -c n ../$(PACKAGE)-$(VERSION)-$(ARCH)-$(RELEASE).tgz )
po_file:
-grep '_(' src/*.c |cut -f2-255 -d':'|sed -re "s/.*(_\(\".*\"\)).*/\1/" > po/gettext_strings