X-Git-Url: http://git.kpe.io/?a=blobdiff_plain;f=debian%2Frules;h=63f132ee0173658b05076036963993b151f2dc9b;hb=0b2b00f0dd28f8f1a6354900c41ef92c5d49958d;hp=b1370c9ccecc0cec561016e33c7fb0f633b4efd3;hpb=6f325aa773d969b0393775c22e4a281885fbbea2;p=ctsim.git diff --git a/debian/rules b/debian/rules index b1370c9..63f132e 100755 --- a/debian/rules +++ b/debian/rules @@ -3,16 +3,27 @@ # GNU copyright 1997 to 1999 by Joey Hess. # Uncomment this to turn on verbose mode. -export DH_VERBOSE=1 +export DH_VERBOSE=0 # This is the debhelper compatibility version to use. export DH_COMPAT=3 -pkg := ctsim -prefix := debian/$(pkg) -DESTDIR := `pwd`/$(prefix) +pkg := ctsim +pkg-help := ctsim-help +pkg-doc := ctsim-doc +pkg-doc-pdf := ctsim-doc-pdf -INSTALL := install +prefix := debian/$(pkg) +prefix-help := debian/$(pkg-help) +prefix-doc := debian/$(pkg-doc) +prefix-doc-pdf := debian/$(pkg-doc-pdf) + +DESTDIR := `pwd`/$(prefix) +HELPDIR := `pwd`/$(prefix-help) +DOCDIR := $(prefix-doc)/usr/share/doc/ctsim-doc +PDFDIR := $(prefix-doc-pdf)/usr/share/doc/ctsim-doc + +INSTALL := install INSTALLFLAGS := -g root -o root -m 0644 INSTALLDIRFLAGS := -d -g root -o root -m 0755 @@ -20,7 +31,7 @@ configure: configure-stamp configure-stamp: dh_testdir # Add here commands to configure the package. - ./configure --prefix=$(DESTDIR)/usr --mandir=$(DESTDIR)/usr/share/man + ./configure --prefix=$(DESTDIR)/usr --mandir=$(DESTDIR)/usr/share/man --datadir=$(HELPDIR) touch configure-stamp @@ -28,23 +39,18 @@ build: build-stamp build-stamp: configure-stamp dh_testdir - # Add here commands to compile the package. - $(MAKE) - #/usr/bin/docbook-to-man debian/uffi.sgml > uffi.1 - + $(MAKE) all touch build-stamp clean: dh_testdir dh_testroot rm -f build-stamp configure-stamp - # Add here commands to clean up after the build process. -$(MAKE) distclean - find . -type f -and -name *~ -or -name .*~ -exec rm -f {} \; + find . -type f -and -name \*~ -or -name .\*~ -exec rm -f {} \; rm -f debian/ctsim.postinst.* debian/ctsim.prerm.* - dh_clean install: build @@ -52,25 +58,28 @@ install: build dh_testroot dh_clean -k dh_installdirs - - # Add here commands to install the package into debian/ctsim. - # install ${INSTALLDIRFLAGS} + # Below command also installs helpfile ${MAKE} install - cp -a doc/html $(DESTDIR)/usr/share/doc/${PKG} + $(INSTALL) $(INSTALLFLAGS) debian/ctsim.xpm $(prefix)/usr/X11R6/include/X11/pixmaps + + $(INSTALL) $(INSTALLFLAGS) $(shell echo docs/html/*) $(DOCDIR)/html + ln -sf $(pkg)_contents.html $(DOCDIR)/html/index.html + + $(INSTALL) $(INSTALLFLAGS) docs/ctsim.pdf $(PDFDIR) + GZIP=-9 gzip $(PDFDIR)/ctsim.pdf # Build architecture-independent files here. binary-indep: build install - # Build architecture-dependent files here. binary-arch: build install dh_testdir dh_testroot # dh_installdebconf -# dh_installdocs + dh_installdocs -A docs/html dh_installexamples tools/sample-ctsim.sh helical/sample-helical.sh -# dh_installmenu + dh_installmenu # dh_installlogrotate # dh_installemacsen # dh_installpam