Update of /cvsroot/lastbash/lastbash
In directory sc8-pr-cvs6.sourceforge.net:/tmp/cvs-serv12965
Modified Files:
Makefile
Log Message:
Removed the debian stuff.
Index: Makefile
===================================================================
RCS file: /cvsroot/lastbash/lastbash/Makefile,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -d -r1.6 -r1.7
--- Makefile 25 Jan 2007 16:54:13 -0000 1.6
+++ Makefile 5 Mar 2007 12:42:53 -0000 1.7
@@ -23,20 +23,11 @@
datadir = $(DESTDIR)$(prefix)/share/$(name)
srcdir = .
-# Debian stuff
-ifdef DEB
- revision = 1
- DESTDIR = /tmp/$(name)
- prefix = /usr
- docdir = $(DESTDIR)$(prefix)/share/doc/$(name)
- DEB_CONTROL = debian/control
- DEB_CHLOG = debian/changelog
-endif
-
# Tools
MKDIR = mkdir
INSTALL = install
RM = rm
+SED = sed
# Tools configuration
MK_DIR = $(MKDIR) -p -m 755
@@ -58,8 +49,14 @@
%.html: %
groff -man -Thtml $< > $@
+# Configure
+config: lastbash.config
+
+lastbash.config: lastbash.config.in
+ $(SED) -e '/^HTML_TEMPLATE/s/@HTML_TEMPLATE@/$${HOME_DIR}\/lastbash-template.html/g' $< > $@
+
# Install section
-install: install_dirs install_prog install_conf install_man install_doc
+install: config install_dirs install_prog install_conf install_man install_doc
install_dirs:
$(MK_DIR) $(bindir) $(confdir) $(man1dir) $(docdir) $(datadir)
@@ -87,25 +84,14 @@
for i in $(conflist); do $(RM) -f $(confdir)/$$i; done
for i in $(man1list); do $(RM) -f $(man1dir)/$$i; done
+clean:
+ $(RM) -f *.ps *.html
+
+distclean:
+ $(RM) -f lastbash.config
+
# Packaging
pack:
cd .. && tar zcvf /tmp/$(name)-$(version).tar.gz $(name)-$(version)
-deb:
- $(MAKE) DEB=1 install
- $(MAKE) DEB=1 deb_files
- $(MAKE) DEB=1 deb_build
-
-deb_files:
- mkdir $(DESTDIR)/DEBIAN
- sed -e '/Version:/s/@VERSION@/$(version)-$(revision)/' < $(DEB_CONTROL) > $(DESTDIR)/DEBIAN/control
- cp $(DEB_CHLOG) $(docdir)/changelog
- mv $(docdir)/COPYING $(docdir)/copyright
- find $(docdir) -type f -exec gzip -9 {} \;
- find $(mandir) -type f -exec gzip -9 {} \;
- find $(DESTDIR) -type d -exec chmod 755 {} \;
-
-deb_build:
- cd /tmp && fakeroot dpkg-deb --build $(name) .
-
# vim: set ft=make nowrap nu:
|