"Fossies" - the Fresh Open Source Software Archive

Member "pwgen-2.08/debian/rules" (7 Aug 2017, 1832 Bytes) of package /linux/privat/pwgen-2.08.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) Make source code syntax highlighting (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file. See also the latest Fossies "Diffs" side-by-side code changes report for "rules": 2.07_vs_2.08.

    1 #!/usr/bin/make -f
    2 # Made with the aid of debmake, by Christoph Lameter,
    3 # based on the sample debian/rules file for GNU hello by Ian Jackson.
    4 
    5 DEB_BUILD_GNU_TYPE=$(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
    6 DEB_HOST_GNU_TYPE=$(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
    7 CPPFLAGS:=$(shell dpkg-buildflags --get CPPFLAGS)
    8 CFLAGS:=$(shell dpkg-buildflags --get CFLAGS)
    9 CXXFLAGS:=$(shell dpkg-buildflags --get CXXFLAGS)
   10 LDFLAGS:=$(shell dpkg-buildflags --get LDFLAGS)
   11 
   12 package=pwgen
   13 
   14 build: build-arch build-indep
   15 build-arch: build-stamp
   16 build-indep: build-stamp
   17 
   18 build-stamp:
   19     dh_testdir
   20     ./configure --build=$(DEB_BUILD_GNU_TYPE) --host=$(DEB_HOST_GNU_TYPE) \
   21         --prefix=/usr --mandir=/usr/share/man
   22     $(MAKE) CFLAGS="$(CFLAGS)" CPPFLAGS="$(CPPFLAGS)" LDFLAGS="$(LDFLAGS)"
   23     touch build-stamp
   24 
   25 clean:
   26     dh_testdir
   27     dh_testroot
   28     rm -f build-stamp
   29 
   30     if test -f Makefile ; then $(MAKE) distclean ; fi
   31     -rm -f `find . -name "*~"` pwgen *.o
   32 
   33     dh_clean
   34 
   35 install: build 
   36     dh_testdir
   37     dh_testroot
   38     dh_prep
   39     dh_installdirs
   40 
   41     $(MAKE) install DESTDIR=`pwd`/debian/pwgen
   42     dh_install -ppwgen-udeb pwgen /usr/bin
   43 
   44 binary-indep: build install
   45     dh_testdir
   46     dh_testroot
   47 # There are no architecture-independent files to be uploaded
   48 # generated by this package.  If there were any they would be
   49 # made here.
   50 
   51 binary-arch: build install
   52     dh_testdir
   53     dh_testroot
   54 #   dh_installdebconf   
   55     dh_installdocs
   56     dh_installexamples
   57     dh_installmenu
   58 #   dh_installemacsen
   59 #   dh_installpam
   60 #   dh_installinit
   61 #   dh_installcron
   62     dh_installman
   63 #   dh_installinfo 
   64 #   dh_undocumented
   65     dh_installchangelogs
   66     dh_link
   67     dh_strip
   68     dh_compress
   69     dh_fixperms
   70     # You may want to make some executables suid here.
   71 #   dh_makeshlibs
   72     dh_installdeb
   73 #   dh_perl
   74     dh_shlibdeps
   75     dh_gencontrol
   76     dh_md5sums
   77     dh_builddeb
   78 
   79 binary: binary-indep binary-arch
   80 
   81 .PHONY: binary binary-arch binary-indep clean