X-Git-Url: http://git.kpe.io/?a=blobdiff_plain;f=debian%2Frules;h=394bfe22be7ff0f88f3e267f99377090ce64a9de;hb=f795e62e5bac3a1f573f63993fdfc96f6222730f;hp=ef0708a1e890dcb8bf92959576d02b60a93d799a;hpb=42198aeb575da8b91cd97fe80193e505ff40681d;p=ctsim.git diff --git a/debian/rules b/debian/rules index ef0708a..394bfe2 100755 --- a/debian/rules +++ b/debian/rules @@ -3,18 +3,24 @@ # 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) -SHAREDOCDIR := $(DESTDIR)/usr/share/doc/$(pkg) -SHAREDATADIR := $(DESTDIR)/usr/share/$(pkg)/. +pkg := ctsim +pkg-help := ctsim-help +pkg-doc := ctsim-doc -INSTALL := install +prefix := debian/$(pkg) +prefix-help := debian/$(pkg-help) +prefix-doc := debian/$(pkg-doc) + +DESTDIR := $(prefix) +HELPDIR := $(prefix-help)/usr/share/ctsim +DOCDIR := $(prefix-doc)/usr/share/doc/$(pkg-doc) + +INSTALL := install INSTALLFLAGS := -g root -o root -m 0644 INSTALLDIRFLAGS := -d -g root -o root -m 0755 @@ -22,7 +28,7 @@ configure: configure-stamp configure-stamp: dh_testdir # Add here commands to configure the package. - ./configure --prefix=$(DESTDIR)/usr --mandir=$(DESTDIR)/usr/share/man --datadir=$(SHAREDATADIR) + ./configure --prefix=$(DESTDIR)/usr --mandir=$(DESTDIR)/usr/share/man --datadir=$(HELPDIR) touch configure-stamp @@ -49,12 +55,13 @@ install: build dh_testroot dh_clean -k dh_installdirs - # Add here commands to install the package into debian/ctsim. + # Below command also installs helpfile ${MAKE} install - $(INSTALL) $(INSTALLFLAGS) $(shell echo docs/html/*) $(SHAREDOCDIR)/html - ln -sf $(pkg)_contents.html $(SHAREDOCDIR)/html/index.html - $(INSTALL) $(INSTALLFLAGS) docs/ctsim.pdf $(SHAREDOCDIR) - GZIP=-9 gzip $(SHAREDOCDIR)/ctsim.pdf + $(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 $(DOCDIR) + GZIP=-9 gzip $(DOCDIR)/ctsim.pdf # Build architecture-independent files here. binary-indep: build install @@ -67,7 +74,7 @@ binary-arch: build install # dh_installdebconf dh_installdocs docs/html dh_installexamples tools/sample-ctsim.sh helical/sample-helical.sh -# dh_installmenu + dh_installmenu # dh_installlogrotate # dh_installemacsen # dh_installpam