From 6782a84bf71d58abdb958765e8eb912090f89221 Mon Sep 17 00:00:00 2001 From: freesource Date: Fri, 12 Oct 2001 20:46:15 +0000 Subject: [PATCH] Part of the packaging thingy. --- Makefile.pkg | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 Makefile.pkg diff --git a/Makefile.pkg b/Makefile.pkg new file mode 100644 index 0000000..52f8bbe --- /dev/null +++ b/Makefile.pkg @@ -0,0 +1,23 @@ + +all: install + +install: + install -d $(DESTDIR)/var/lib/dpkg + install -d $(DESTDIR)/usr/bin + cp -a swim $(DESTDIR)/usr/bin/swim + install -d $(DESTDIR)/usr/share/perl5/SWIM + cp -fa SWIM/*pm $(DESTDIR)/usr/share/perl5/SWIM + install -d $(DESTDIR)/usr/lib/SWIM + cp -fa bin/* $(DESTDIR)/usr/lib/SWIM + install -d $(DESTDIR)/etc/swim + cp -f swimrc $(DESTDIR)/etc/swim + +remove: + rm /usr/lib/perl5/SWIM/* + rmdir /usr/lib/perl5/SWIM + rm /usr/bin/swim + rm /usr/lib/SWIM/* + rmdir /usr/lib/SWIM + + +