"Fossies" - the Fresh Open Source Software Archive

Member "listadmin-2.40/Makefile" (7 Oct 2007, 1360 Bytes) of package /linux/privat/old/listadmin-2.40.tar.gz:


As a special service "Fossies" has tried to format the requested text file into HTML format (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file.

    1 SHELL = /bin/sh
    2 # a BSD or GNU style install is required, e.g., /usr/ucb/install on Solaris
    3 INSTALL = install
    4 
    5 VERSION = 2.40
    6 
    7 PREFIX = /usr/local
    8 prefix = $(PREFIX)
    9 bindir = $(prefix)/bin
   10 mandir = $(prefix)/share/man
   11 
   12 SRCFILES = Makefile listadmin.pl listadmin.man
   13 
   14 all:
   15 	@echo Nothing needs to be done
   16 
   17 install:
   18 	$(INSTALL) -d $(DESTDIR)$(bindir) $(DESTDIR)$(mandir)/man1
   19 	$(INSTALL) -m 755 listadmin.pl $(DESTDIR)$(bindir)/listadmin
   20 	$(INSTALL) -m 644 listadmin.man $(DESTDIR)$(mandir)/man1/listadmin.1
   21 
   22 listadmin.txt: listadmin.man
   23 #	Note the verbatim backspace in the sed command
   24 	env TERM=dumb nroff -man $< | sed -e '/^XXX/d' -e 's/.//g' | uniq > $@.tmp
   25 	mv $@.tmp $@
   26 
   27 TARFILE = listadmin-$(VERSION).tar.gz
   28 $(TARFILE): $(SRCFILES) listadmin.txt
   29 	@rm -rf listadmin-$(VERSION)
   30 	mkdir listadmin-$(VERSION)
   31 	cp $(SRCFILES) listadmin.txt listadmin-$(VERSION)/
   32 	tar cf - listadmin-$(VERSION) | gzip -9 > $(TARFILE)
   33 	rm -rf listadmin-$(VERSION)
   34 
   35 dist: $(TARFILE)
   36 
   37 distclean:
   38 	rm -rf $(TARFILE) listadmin.txt listadmin-$(VERSION)
   39 
   40 # for my use only
   41 WWW_DOCS = /hom/kjetilho/www_docs/hacks
   42 publish: dist
   43 	cp -p listadmin.txt $(WWW_DOCS)/listadmin.txt
   44 	cp -p $(TARFILE) $(WWW_DOCS)/
   45 	cp -p listadmin.pl $(WWW_DOCS)/listadmin
   46 	cp -p listadmin.man $(WWW_DOCS)/listadmin.man
   47 	perl -pi -e 's/listadmin(.)\d+\.\d+/listadmin$${1}'$(VERSION)'/g' $(WWW_DOCS)/index.html