aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorJason Woodward2004-06-11 00:31:12 +0000
committerJason Woodward2004-06-11 00:31:12 +0000
commit08dc00e187e3601e32ca589663fb1d5db4d5f1c1 (patch)
treecece37ae74f202876a73742b57a375b7e0fe9a62 /Makefile
parente11d7b355fa1c7d5ba7d79d77522672e7be0549e (diff)
downloadslapt-get-08dc00e187e3601e32ca589663fb1d5db4d5f1c1.tar.gz
makefile updates
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile46
1 files changed, 22 insertions, 24 deletions
diff --git a/Makefile b/Makefile
index 75b347e..f391275 100644
--- a/Makefile
+++ b/Makefile
@@ -79,28 +79,28 @@ staticpkg: static dopkg
withlibslaptpkg: withlibslapt dopkg
dopkg:
- -@mkdir pkg
- -@mkdir -p pkg/sbin
- -@mkdir -p pkg/etc
- -@mkdir -p pkg/install
- -@mkdir -p pkg/usr/man/man8
- -@for i in `ls po/ --ignore=slapt-get.pot --ignore=CVS |sed 's/.po//'` ;do mkdir -p pkg$(LOCALESDIR)/$$i/LC_MESSAGES; msgfmt -o pkg$(LOCALESDIR)/$$i/LC_MESSAGES/slapt-get.mo po/$$i.po; done
- -@cp $(PROGRAM_NAME) ./pkg/sbin/
- -@chown root:bin ./pkg/sbin/$(PROGRAM_NAME)
- -@strip ./pkg/sbin/$(PROGRAM_NAME)
- -@cp example.slapt-getrc ./pkg/etc/slapt-getrc.new
- -@mkdir -p ./pkg/usr/doc/$(PROGRAM_NAME)-$(VERSION)/
- -@cp example.slapt-getrc COPYING Changelog INSTALL README FAQ TODO ./pkg/usr/doc/$(PROGRAM_NAME)-$(VERSION)/
- -@echo "if [ ! -f etc/slapt-getrc ]; then mv etc/slapt-getrc.new etc/slapt-getrc; else diff -q etc/slapt-getrc etc/slapt-getrc.new >/dev/null 2>&1 && rm etc/slapt-getrc.new; fi; if [ -L /usr/lib/libslapt.so ]; then rm /usr/lib/libslapt.so;fi; ln -s /usr/lib/libslapt-$(VERSION).so /usr/lib/libslapt.so" > pkg/install/doinst.sh
- -@cp slack-desc pkg/install/
- -@cp slack-required pkg/install/
- -@cp $(PROGRAM_NAME).8 pkg/usr/man/man8/
- -@gzip pkg/usr/man/man8/$(PROGRAM_NAME).8
- -@mkdir -p pkg/usr/lib
- -@mkdir -p pkg/usr/include
- -@cp include/slapt.h pkg/usr/include/
- -@cp src/libslapt-$(VERSION).a src/libslapt-$(VERSION).so pkg/usr/lib/
- -@strip pkg/usr/lib/libslapt-$(VERSION).so
+ @mkdir pkg
+ @mkdir -p pkg/sbin
+ @mkdir -p pkg/etc
+ @mkdir -p pkg/install
+ @mkdir -p pkg/usr/man/man8
+ @for i in `ls po/ --ignore=slapt-get.pot --ignore=CVS |sed 's/.po//'` ;do mkdir -p pkg$(LOCALESDIR)/$$i/LC_MESSAGES; msgfmt -o pkg$(LOCALESDIR)/$$i/LC_MESSAGES/slapt-get.mo po/$$i.po; done
+ @cp $(PROGRAM_NAME) ./pkg/sbin/
+ @chown root:bin ./pkg/sbin/$(PROGRAM_NAME)
+ @strip ./pkg/sbin/$(PROGRAM_NAME)
+ @cp example.slapt-getrc ./pkg/etc/slapt-getrc.new
+ @mkdir -p ./pkg/usr/doc/$(PROGRAM_NAME)-$(VERSION)/
+ @cp example.slapt-getrc COPYING Changelog INSTALL README FAQ TODO ./pkg/usr/doc/$(PROGRAM_NAME)-$(VERSION)/
+ @echo "if [ ! -f etc/slapt-getrc ]; then mv etc/slapt-getrc.new etc/slapt-getrc; else diff -q etc/slapt-getrc etc/slapt-getrc.new >/dev/null 2>&1 && rm etc/slapt-getrc.new; fi; if [ -L /usr/lib/libslapt.so ]; then rm /usr/lib/libslapt.so;fi; ln -s /usr/lib/libslapt-$(VERSION).so /usr/lib/libslapt.so" > pkg/install/doinst.sh
+ @cp slack-desc pkg/install/
+ @cp slack-required pkg/install/
+ @cp $(PROGRAM_NAME).8 pkg/usr/man/man8/
+ @gzip pkg/usr/man/man8/$(PROGRAM_NAME).8
+ @mkdir -p pkg/usr/lib
+ @mkdir -p pkg/usr/include
+ @cp include/slapt.h pkg/usr/include/
+ @cp src/libslapt-$(VERSION).a src/libslapt-$(VERSION).so pkg/usr/lib/
+ @strip pkg/usr/lib/libslapt-$(VERSION).so
@( cd pkg; /sbin/makepkg -l y -c y $(PROGRAM_NAME)-$(VERSION)-$(ARCH)-$(RELEASE).tgz )
po_file:
@@ -115,5 +115,3 @@ libs: $(OBJS)
ar -r src/libslapt-$(VERSION).a src/configuration.o src/package.o src/curl.o src/transaction.o
cat include/main.h include/configuration.h include/package.h include/curl.h include/transaction.h |grep -v '#include \"' > include/slapt.h
-test:
- -@make -f t/Makefile default