"Fossies" - the Fresh Open Source Software Archive

Member "atool-0.39.0/Makefile.am" (15 Jul 2011, 1560 Bytes) of package /linux/privat/old/atool-0.39.0.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 .PHONY: debian rpm
    2 
    3 ACLOCAL_AMFLAGS = -I m4
    4 #SUBDIRS = doc etc
    5 
    6 script_files = atool
    7 script_stamp_files = $(script_files:%=.%-stamp)
    8 script_old_files = $(script_files:%=.%-old)
    9 
   10 man_MANS = $(PACKAGE).1
   11 
   12 EXTRA_DIST = $(script_files) extra debian/changelog debian/control debian/copyright debian/rules $(man_MANS)
   13 DISTCLEANFILES = $(script_stamp_files)
   14 MAINTAINERCLEANFILES = $(script_old_files)
   15 
   16 dist_bin_SCRIPTS = $(script_files)
   17 
   18 $(script_stamp_files): .%-stamp: % $(srcdir)/configure.ac
   19 	touch `basename "$<"`
   20 	sed "1s|[^ ]*|$(PERL_SHEBANG)|;/^\\$$::SYSCONFDIR = /s|'.*'|'$(SYSCONFDIR)'|;/^\\$$::PACKAGE = /s/'.*'/'$(PACKAGE)'/;/^\\$$::VERSION = /s/'.*'/'$(PACKAGE_VERSION)'/;/^\\$$::BUG_EMAIL = /s/'.*'/'$(PACKAGE_BUGREPORT)'/" < $< > `basename $<.tmp` \
   21 	  && mv `basename "$<"` .`basename "$<-old"` \
   22 	  && mv `basename "$<.tmp"` `basename "$<"`
   23 	chmod a+x `basename "$<"`
   24 	touch $@
   25 
   26 all-local: $(script_stamp_files)
   27 
   28 debian:
   29 	cd $(srcdir) && dpkg-buildpackage -rfakeroot -us -uc -sd -b
   30         
   31 rpm: $(PACKAGE).spec
   32 	rpmbuild -ba --clean $<
   33 
   34 install-exec-local:
   35 	mkdir -p $(DESTDIR)$(bindir)
   36 	mkdir -p $(DESTDIR)$(mandir)/man1
   37 	for f in aunpack arepack apack acat als adiff; do \
   38 	  ln -s -f atool $(DESTDIR)$(bindir)/$$f; \
   39 	  ln -s -f atool.1 $(DESTDIR)$(mandir)/man1/$$f.1; \
   40 	done
   41 
   42 uninstall-local:
   43 	for f in aunpack arepack apack acat als adiff; do \
   44 	  if [ -L $(DESTDIR)$(bindir)/$$f ]; then \
   45 	    rm $(DESTDIR)$(bindir)/$$f; \
   46 	  fi; \
   47 	  if [ -L $(DESTDIR)$(mandir)/man1/$$f.1 ]; then \
   48 	    rm $(DESTDIR)$(mandir)/man1/$$f.1; \
   49 	  fi; \
   50 	done